feat: passwords will be randomly generated
This commit is contained in:
+5
-1
@@ -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 }}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user