Commit b3c55124 authored by Sven-Hendrik Haase's avatar Sven-Hendrik Haase
Browse files

Add sudo role

parent 6bb007dc
---
root_ssh_keys:
- bpiotrowski.pub
- bluewind.pub
- bpiotrowski.pub
- svenstaro.pub
---
sudo_users:
- allan
- bluewind
- bpiotrowski
- dan
- dreisner
- foutrelis
- heftig
- ioni
- pierre
- root
- seblu
- svenstaro
- thomas
......@@ -13,3 +13,4 @@
- { role: postfix}
- archusers
- dbscripts
- sudo
---
- name: install sudo
pacman: name=sudo state=present
- name: add sudo users to wheel
user: name="{{ item }}" append=yes groups=wheel
with_items: "{{ sudo_users }}"
- name: allow wheel group to use sudo
lineinfile: dest=/etc/sudoers state=present regexp='^%wheel' line='%wheel ALL=(ALL) ALL' validate='visudo -cf %s'
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment