fix: create user with hashed pwd
This commit is contained in:
+2
-2
@@ -29,8 +29,8 @@
|
|||||||
user:
|
user:
|
||||||
name: xrdpuser
|
name: xrdpuser
|
||||||
shell: /bin/bash
|
shell: /bin/bash
|
||||||
password: "{{ lookup('password', '/dev/shm/xrdpuser chars=ascii_letters,digits,hexdigits length=15') }}"
|
password: "{{ lookup('password', '/dev/shm/xrdpuser chars=ascii_letters,digits,hexdigits length=15') | password_hash('sha512') }}"
|
||||||
|
|
||||||
- name: Display password of xrdpuser
|
- name: Display password of xrdpuser
|
||||||
debug:
|
debug:
|
||||||
var: "{{ lookup('password', '/dev/shm/xrdpuser chars=ascii_letters,digits,hexdigits length=15') }}"
|
msg: "{{ lookup('password', '/dev/shm/xrdpuser chars=ascii_letters,digits,hexdigits length=15') }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user