Remove mandatory user groups

This triggers a change on every run even though there wasn't one.
This commit is contained in:
Ryan Cavicchioni 2019-11-28 12:55:51 -06:00
parent 3ca199ed20
commit 9f12ae25fd
Signed by: ryanc
GPG Key ID: 877EEDAF9245103D
2 changed files with 0 additions and 9 deletions

View File

@ -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

View File

@ -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 }}"