|
@ -4,12 +4,12 @@ |
|
|
name: "{{ group }}" |
|
|
name: "{{ group }}" |
|
|
state: present |
|
|
state: present |
|
|
|
|
|
|
|
|
- name: linode_preflight | add_user | Allow 'admin' group to have passwordless sudo |
|
|
- name: linode_preflight | add_user | Allow admin group to have passwordless sudo |
|
|
lineinfile: |
|
|
lineinfile: |
|
|
dest: /etc/sudoers |
|
|
dest: /etc/sudoers |
|
|
state: present |
|
|
state: present |
|
|
regexp: '^%admin' |
|
|
regexp: '^%{{ group }}' |
|
|
line: '%admin ALL=(ALL) NOPASSWD: ALL' |
|
|
line: '%{{ group }} ALL=(ALL) NOPASSWD: ALL' |
|
|
validate: 'visudo -cf %s' |
|
|
validate: 'visudo -cf %s' |
|
|
become: yes |
|
|
become: yes |
|
|
|
|
|
|
|
|