group: add support for members

members, addusers, delusers, and in pillar examples
This commit is contained in:
Adrien "ze" Urban 2019-03-07 11:58:57 +01:00
parent b69bef3cd1
commit def8f53932
2 changed files with 10 additions and 0 deletions

View File

@ -176,3 +176,10 @@ groups:
niceguys: niceguys:
gid: 4242 gid: 4242
system: False system: False
addusers: root
delusers: toor
ssl-cert:
system: True
members:
- www-data
- openldap

View File

@ -15,6 +15,9 @@ users_group_present_{{ group }}:
- name: {{ group }} - name: {{ group }}
- gid: {{ setting.get('gid') }} - gid: {{ setting.get('gid') }}
- system: {{ setting.get('system',"False") }} - system: {{ setting.get('system',"False") }}
- members: {{ setting.get('members')|json }}
- addusers: {{ setting.get('addusers')|json }}
- delusers: {{ setting.get('delusers')|json }}
{% endif %} {% endif %}
{% endfor %} {% endfor %}