From 3104905bf509a8525e3c274f719edddaeb897546 Mon Sep 17 00:00:00 2001 From: x p k Date: Sun, 27 Jan 2019 00:52:41 +0800 Subject: [PATCH] fix: create user with hashed pwd --- tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 18c19e0..3efeaf4 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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') }}"