Support for optional_groups

This commit is contained in:
jraby 2016-08-05 14:05:12 -04:00 committed by GitHub
parent 6bc25c9099
commit 5538eb18ab

View File

@ -135,6 +135,12 @@ users_{{ name }}_user:
{% for group in user.get('groups', []) -%} {% for group in user.get('groups', []) -%}
- {{ group }} - {{ group }}
{% endfor %} {% endfor %}
{% if 'optional_groups' in user %}
- optional_groups:
{% for optional_group in user['optional_groups'] -%}
- {{optional_group}}
{% endfor %}
{% endif %}
- require: - require:
- group: {{ user_group }} - group: {{ user_group }}
{% for group in user.get('groups', []) -%} {% for group in user.get('groups', []) -%}