Skip to content

Commit

Permalink
feat(user): adds support for non_unique parameter for user creation
Browse files Browse the repository at this point in the history
fix #38
  • Loading branch information
nathanwebsterdotme committed Nov 9, 2022
1 parent 15c0878 commit 586c71b
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 586c71b

Please sign in to comment.