feat: passwords will be randomly generated

This commit is contained in:
xpk
2019-02-20 17:34:24 +08:00
parent bd6547324d
commit 83e9f4dc5d
2 changed files with 7 additions and 1 deletions
+5 -1
View File
@@ -8,7 +8,7 @@
name: "{{ user.name }}"
shell: /bin/bash
groups: "{{ user.group }},ssh_access"
password: "{{ user.pwhash }}"
password: "{{ hashed_pass }}"
- name: Add user to sudoers
lineinfile:
@@ -18,3 +18,7 @@
mode: 0440
when: user.sudoers
- name: Display generated password
debug:
msg: "Generated password for user: {{ plain_pass }}"