mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
add usergroup, dont create additional groupos
This commit is contained in:
@@ -22,14 +22,12 @@ remove_user_{{username}}:
|
|||||||
{% if 'node_access' in userdeets %}
|
{% if 'node_access' in userdeets %}
|
||||||
{% if grains.role in userdeets.node_access or grains.id.split('_')|last in userdeets.node_access %}
|
{% if grains.role in userdeets.node_access or grains.id.split('_')|last in userdeets.node_access %}
|
||||||
|
|
||||||
{% for group in userdeets.get('groups', []) %}
|
add_user_group_{{username}}:
|
||||||
add_user_groups_{{username}}_{{group}}:
|
|
||||||
group.present:
|
group.present:
|
||||||
- name: {{ group }}
|
- name: {{ username }}
|
||||||
{% if group == 'sudo' %}
|
{% if 'uid' in userdeets %}
|
||||||
- system: True
|
- gid: {{ userdeets.uid }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
|
||||||
|
|
||||||
add_user_{{username}}:
|
add_user_{{username}}:
|
||||||
user.present:
|
user.present:
|
||||||
|
|||||||
Reference in New Issue
Block a user