Skip to content

Commit

Permalink
feat(user): add non_unique flag to user creation
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanwebsterdotme committed Sep 16, 2020
1 parent 15c0878 commit 8c6d5e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tasks/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 )))
Expand Down

0 comments on commit 8c6d5e4

Please sign in to comment.