Skip to content

Commit

Permalink
hash password if defined
Browse files Browse the repository at this point in the history
  • Loading branch information
scrum-my authored Nov 30, 2023
1 parent 1642152 commit 0ba275b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/create-users.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
groups: "{{ item.groups | join(',') if 'groups' in item else '' }}"
append: "{{ item.append | default(omit) }}"
shell: "{{ item.shell if item.shell is defined else users_default_shell }}"
password: "{{ item.password if item.password is defined else '!' }}"
password: "{{ item.password | password_hash('sha512') if item.password is defined else '!' }}"
comment: "{{ item.name if item.name is defined else '' }}"
uid: "{{ item.uid | default(omit) }}"
home: "{{ item.home | default('/home/' + item.username) }}"
Expand Down

0 comments on commit 0ba275b

Please sign in to comment.