default.yml (280B)
1 - name: set plaintext password 2 no_log: yes 3 set_fact: 4 test_user_plaintext_password: "{{ lookup('password', '/dev/null') }}" 5 6 - name: set hashed password 7 no_log: yes 8 set_fact: 9 test_user_hashed_password: "{{ test_user_plaintext_password | password_hash('sha512') }}"