enh: removed variable

This commit is contained in:
xpk
2019-03-29 14:08:23 +08:00
parent 15c5fdbc1e
commit 350983a561
2 changed files with 1 additions and 2 deletions
+1 -1
View File
@@ -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
View File
@@ -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') }}"