mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-01 12:32:12 +00:00
Don't print user password in taskname
This commit is contained in:
parent
602ebfc952
commit
34f335c7e6
1 changed files with 1 additions and 3 deletions
|
@ -12,16 +12,14 @@
|
|||
- name: Prepare to set user password
|
||||
set_fact:
|
||||
user_name: "{{ ansible_user }}"
|
||||
user_password: "{{ user_password }}"
|
||||
user_salt: "s0mew1ck3dTpoT"
|
||||
|
||||
- name: Changing password for user {{ user_name }} to {{ user_password }}
|
||||
- name: Changing password for user {{ user_name }}
|
||||
user:
|
||||
name: "{{ ansible_user }}"
|
||||
password: "{{ user_password | password_hash('sha512', user_salt) }}"
|
||||
state: present
|
||||
shell: /bin/bash
|
||||
update_password: always
|
||||
|
||||
- name: Copy T-Pot configuration file
|
||||
template:
|
||||
|
|
Loading…
Reference in a new issue