fix: create user with hashed pwd
This commit is contained in:
+2
-2
@@ -29,8 +29,8 @@
|
||||
user:
|
||||
name: xrdpuser
|
||||
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
|
||||
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