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
|
with_items: formulae
|
||||||
- homebrew: name=macvim install_options=override-system-vim state=upgraded
|
- homebrew: name=macvim install_options=override-system-vim state=upgraded
|
||||||
- command: brew linkapps
|
- command: brew linkapps
|
||||||
|
@ -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…
Reference in new issue