From 9f12ae25fdb307716ff6be48ad1b632f0fdeb613 Mon Sep 17 00:00:00 2001 From: Ryan Cavicchioni Date: Thu, 28 Nov 2019 12:55:51 -0600 Subject: [PATCH] Remove mandatory user groups This triggers a change on every run even though there wasn't one. --- roles/users/defaults/main.yaml | 1 - roles/users/tasks/main.yaml | 8 -------- 2 files changed, 9 deletions(-) diff --git a/roles/users/defaults/main.yaml b/roles/users/defaults/main.yaml index bf94418..00890c3 100644 --- a/roles/users/defaults/main.yaml +++ b/roles/users/defaults/main.yaml @@ -2,4 +2,3 @@ user_default_shell: /bin/bash user_default_groups: - users -user_interactive_user_mandatory_groups: users diff --git a/roles/users/tasks/main.yaml b/roles/users/tasks/main.yaml index ea6174b..86fa9a5 100644 --- a/roles/users/tasks/main.yaml +++ b/roles/users/tasks/main.yaml @@ -31,14 +31,6 @@ when: users_interactive is defined 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 group: name: "{{ item.name }}"