about summary refs log tree commit diff
path: root/bootstrap.yml
diff options
context:
space:
mode:
Diffstat (limited to 'bootstrap.yml')
-rw-r--r--bootstrap.yml17
1 files changed, 10 insertions, 7 deletions
diff --git a/bootstrap.yml b/bootstrap.yml
index 012ce90..6a00e93 100644
--- a/bootstrap.yml
+++ b/bootstrap.yml
@@ -16,14 +16,17 @@
     - base_users
     tasks:
     - name: zsh
-      apt: name=zsh
-    #- name: Allow paswordless sudo
-    #  lineinfile:
-    #    dest: /etc/sudoers
-    #    state: present
-    #    regexp: "^%sudo"
+      apt: 
+        name: zsh
+        update_cache: true
+    - name: Allow paswordless sudo
+      lineinfile:
+        dest: /etc/sudoers
+        state: present
+        insertafter: "^%sudo"
+        line: "ansible_worker\tALL=(ALL:ALL) NOPASSWD: ALL"
+        validate: '/usr/sbin/visudo -cf %s'
     #    line: "%sudo ALL=(ALL) NOPASSWD: ALL"
-    #    validate: '/usr/sbin/visudo -cf %s'
     - file:
         path: /home/pawel/.zshrc
         owner: pawel