From 8c6d5e444c25d1209166e51b391bfd1c4ba0d35b Mon Sep 17 00:00:00 2001 From: Nathan Webster Date: Wed, 16 Sep 2020 13:17:11 +0100 Subject: [PATCH] feat(user): add non_unique flag to user creation --- tasks/build.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tasks/build.yml b/tasks/build.yml index 5df4c93..480106e 100644 --- a/tasks/build.yml +++ b/tasks/build.yml @@ -41,13 +41,14 @@ group: "{{ item.group | default(omit) }}" groups: "{{ item.groups | default([ ]) | join(',') | default(omit) }}" name: "{{ item.name }}" + non_unique: "{{ item.non_unique | default(no) }}" password: "{{ item.password | default(omit) }}" - update_password: "{{ item.update_password | default(omit) }}" remove: "{{ 'yes' if item.state is defined and item.state == 'absent' else 'no' }}" shell: "{{ item.shell | default('/bin/bash') }}" state: "{{ item.state | default(omit) }}" system: "{{ item.system | default(omit) }}" uid: "{{ item.uid | default(omit) }}" + update_password: "{{ item.update_password | default(omit) }}" with_items: "{{ sansible_users_and_groups_users }}" when: (sansible_users_and_groups_whitelist_groups == []) or ( item.groups is defined and ( item.groups | intersect(sansible_users_and_groups_whitelist_groups )))