diff options
-rw-r--r-- | roles/users/tasks/main.yml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/roles/users/tasks/main.yml b/roles/users/tasks/main.yml index 23a4945..db38667 100644 --- a/roles/users/tasks/main.yml +++ b/roles/users/tasks/main.yml @@ -11,6 +11,7 @@ comment: '{{ userdata[item].name }}' shell: "{{ ('shell' in userdata[item])|ternary(userdata[item].shell,'/bin/bash') }}" uid: '{{ userdata[item].uid }}' + password: "{{ ('password' in userdata[item])|ternary(userdata[item].password,omit) }}" group: users groups: "{{ (users[item] == 'sudo')|ternary([sudo_group],[]) }}" with_items: '{{ users|dictsort()|selectattr(1)|map(attribute=0)|list }}' |