[meta] Drop OS X keybinding, tweak OS X role

pull/28/head
Alpha Chen 10 years ago
parent 9b6b17a85f
commit fe52f4ead1

@ -0,0 +1,4 @@
{
"^w" = "deleteWordBackward:";
"^u" = "deleteToBeginningOfLine:";
}

@ -1,5 +1,5 @@
---
- homebrew: name={{ item }} state=upgraded
- homebrew: name={{ item }}
with_items: formulae
- homebrew: name=macvim install_options=override-system-vim state=upgraded
- command: brew linkapps

@ -3,3 +3,5 @@
- include: homebrew.yml
- include: casks.yml
- include: fonts.yml
- file: path=~/Library/KeyBindings state=directory
- copy: src=DefaultKeyBinding.dict dest=~/Library/KeyBindings/DefaultKeyBinding.dict

@ -10,6 +10,7 @@ formulae:
- the_silver_searcher
- tmux
- youtube-dl
- zsh
casks:
- adium
- dropbox

@ -0,0 +1,13 @@
---
- sudo: True
tasks:
- name: update and upgrade packages
apt: update_cache=yes upgrade=yes
- name: install packages
apt: pkg={{ item }} state=present
with_items:
- git
- golang
- nginx
- stow
- tmux

@ -0,0 +1,5 @@
- hosts: test
sudo: True
tasks:
- name: apt-get update
apt: update_cache=yes

@ -0,0 +1,16 @@
- hosts: prgmr
tasks:
- name: setup sudo
apt: pkg=sudo state=latest
- name: add users to sudo group
user: name={{ item }} append=yes groups=sudo state=present
with_items:
- alpha
- name: copy sudoers file
command: cp -f /etc/sudoers /tmp/sudoers
- name: backup sudoers file
command: cp -f /tmp/sudoers /tmp/sudoers.bak
- name: don't require a password for sudo group in /tmp/sudoers
lineinfile: "dest=/tmp/sudoers state=present regexp='^%sudo' line='%sudo ALL=(ALL:ALL) NOPASSWD: ALL'"
- name: check /tmp/sudoers and update /etc/sudoers
shell: visudo -qcf /tmp/sudoers && cp -f /tmp/sudoers /etc/sudoers
Loading…
Cancel
Save