Merge branch 'sudo_location' into 'master'
sudo group by location See merge request aurore/ansible!29
This commit is contained in:
commit
8da9e10a51
2 changed files with 12 additions and 1 deletions
3
group_vars/pacaterie/sudo_location_group.yml
Normal file
3
group_vars/pacaterie/sudo_location_group.yml
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
# Users in that group will be able to `sudo`
|
||||
sudo_group_location: 'sudopacaterie'
|
|
@ -16,8 +16,16 @@
|
|||
until: package_result is succeeded
|
||||
|
||||
# Set sudo group
|
||||
- name: Configure sudoers
|
||||
- name: Configure sudoers sudo group
|
||||
lineinfile:
|
||||
dest: /etc/sudoers
|
||||
regexp: "^%{{ sudo_group }}"
|
||||
line: "%{{ sudo_group }} ALL=(ALL:ALL) ALL"
|
||||
|
||||
# Set sudo location group
|
||||
- name: Configure sudoers sudo location group
|
||||
lineinfile:
|
||||
dest: /etc/sudoers
|
||||
regexp: "^%{{ sudo_group_location }}"
|
||||
line: "%{{ sudo_group_location }} ALL=(ALL:ALL) ALL"
|
||||
when: sudo_group_location is defined
|
||||
|
|
Loading…
Reference in a new issue