Remove mandatory user groups
This triggers a change on every run even though there wasn't one.
This commit is contained in:
parent
3ca199ed20
commit
9f12ae25fd
@ -2,4 +2,3 @@
|
|||||||
user_default_shell: /bin/bash
|
user_default_shell: /bin/bash
|
||||||
user_default_groups:
|
user_default_groups:
|
||||||
- users
|
- users
|
||||||
user_interactive_user_mandatory_groups: users
|
|
||||||
|
@ -31,14 +31,6 @@
|
|||||||
when: users_interactive is defined
|
when: users_interactive is defined
|
||||||
no_log: yes
|
no_log: yes
|
||||||
|
|
||||||
- name: add users to default groups
|
|
||||||
user:
|
|
||||||
name: "{{ item.name }}"
|
|
||||||
groups: "{{ user_interactive_user_mandatory_groups | default(omit) }}"
|
|
||||||
append: yes
|
|
||||||
with_items: "{{ users_interactive }}"
|
|
||||||
when: users_interactive is defined and user_interactive_user_mandatory_groups is defined
|
|
||||||
|
|
||||||
- name: ensure system groups
|
- name: ensure system groups
|
||||||
group:
|
group:
|
||||||
name: "{{ item.name }}"
|
name: "{{ item.name }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user