enh: removed variable
This commit is contained in:
+1
-1
@@ -8,7 +8,7 @@
|
|||||||
name: "{{ user.name }}"
|
name: "{{ user.name }}"
|
||||||
shell: /bin/bash
|
shell: /bin/bash
|
||||||
groups: "{{ user.group }},ssh_access"
|
groups: "{{ user.group }},ssh_access"
|
||||||
password: "{{ hashed_pass }}"
|
password: "{{ plain_pass | password_hash('sha512') }}"
|
||||||
|
|
||||||
- name: Add user to sudoers
|
- name: Add user to sudoers
|
||||||
lineinfile:
|
lineinfile:
|
||||||
|
|||||||
@@ -1,2 +1 @@
|
|||||||
plain_pass: "{{ lookup('password', '/dev/null chars=ascii_letters,digits,hexdigits length=15') }}"
|
plain_pass: "{{ lookup('password', '/dev/null chars=ascii_letters,digits,hexdigits length=15') }}"
|
||||||
hashed_pass: "{{ plain_pass | password_hash('sha512') }}"
|
|
||||||
|
|||||||
Reference in New Issue
Block a user