diff options
Diffstat (limited to 'clarkzjw.ca/config/atlas/roles/init')
-rw-r--r-- | clarkzjw.ca/config/atlas/roles/init/tasks/main.yaml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/clarkzjw.ca/config/atlas/roles/init/tasks/main.yaml b/clarkzjw.ca/config/atlas/roles/init/tasks/main.yaml new file mode 100644 index 0000000..35284bd --- /dev/null +++ b/clarkzjw.ca/config/atlas/roles/init/tasks/main.yaml | |||
@@ -0,0 +1,21 @@ | |||
1 | - name: Make sure we have a 'wheel' group | ||
2 | group: | ||
3 | name: wheel | ||
4 | state: present | ||
5 | become_user: root | ||
6 | |||
7 | - name: Allow 'wheel' group to have passwordless sudo | ||
8 | become_user: root | ||
9 | lineinfile: | ||
10 | dest: /etc/sudoers | ||
11 | state: present | ||
12 | regexp: '^%wheel' | ||
13 | line: '%wheel ALL=(ALL) NOPASSWD: ALL' | ||
14 | validate: visudo -cf %s | ||
15 | |||
16 | - name: Add sudoers users to wheel group | ||
17 | become_user: root | ||
18 | user: | ||
19 | name: clarkzjw | ||
20 | groups: wheel | ||
21 | append: yes | ||