mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Adding the Ansible way how to create a password hash
This commit is contained in:
parent
2a90bea311
commit
028f79a86b
1 changed files with 7 additions and 1 deletions
|
@ -410,7 +410,13 @@ but the exact files to edit vary depending on your OS and distribution and local
|
|||
How do I generate crypted passwords for the user module?
|
||||
++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
||||
|
||||
The mkpasswd utility that is available on most Linux systems is a great option:
|
||||
Ansible ad-hoc command is the easiest option:
|
||||
|
||||
.. code-block:: shell-session
|
||||
|
||||
ansible all -i localhost, -m debug -a "msg={{ 'mypassword' | password_hash('sha512', 'mysecretsalt') }}"
|
||||
|
||||
The mkpasswd utility that is available on most Linux systems is also a great option:
|
||||
|
||||
.. code-block:: shell-session
|
||||
|
||||
|
|
Loading…
Reference in a new issue