aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorclarkzjw <[email protected]>2023-01-13 13:48:39 -0800
committerclarkzjw <[email protected]>2023-01-13 13:48:39 -0800
commit12ebe13899b44122739418e96f0422ef15b28330 (patch)
tree1487cfa0fd1fb825268def0fddf5fbf58d168ca3 /clarkzjw.ca/config/atlas/roles/init/tasks/main.yaml
parent7f03acd7b74fc96ee8fb10dc5becd758b080455b (diff)
downloadhomelab-12ebe13899b44122739418e96f0422ef15b28330.tar.gz
ansible: setup
Diffstat (limited to 'clarkzjw.ca/config/atlas/roles/init/tasks/main.yaml')
-rw-r--r--clarkzjw.ca/config/atlas/roles/init/tasks/main.yaml21
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
Powered by cgit v1.2.3 (git 2.41.0)