Add absent_groups pillar to remove groups.
This commit is contained in:
parent
302a466c94
commit
0e76454a16
@ -151,3 +151,9 @@ sudoer-{{ name }}:
|
|||||||
file.absent:
|
file.absent:
|
||||||
- name: /etc/sudoers.d/{{ user }}
|
- name: /etc/sudoers.d/{{ user }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
|
{% for group in pillar.get('absent_groups', []) %}
|
||||||
|
{{ group }}:
|
||||||
|
group.absent
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user