Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
3b4f3f8c
Commit
3b4f3f8c
authored
Jan 07, 2014
by
Joshua Lund
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improved the documentation for password generation
parent
c8bd1492
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
4 deletions
+14
-4
docsite/rst/faq.rst
+12
-2
library/system/user
+2
-2
No files found.
docsite/rst/faq.rst
View file @
3b4f3f8c
...
...
@@ -215,9 +215,19 @@ Ansible 1.4 will also make remote environment variables available via facts in t
How do I generate crypted passwords for the user module?
++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Crypted password values can be generated as follows
::
The mkpasswd utility that is available on most Linux systems is a great option
::
openssl passwd -salt <salt> -1 <plaintext>
mkpasswd --method=SHA-512
If this utility is not installed on your system (e.g. you are using OS X) then you can still easily
generate these passwords using Python. First, ensure that the `Passlib <https://code.google.com/p/passlib/>`_
password hashing library is installed.
pip install passlib
Once the library is ready, SHA512 password values can then be generated as follows::
python -c "from passlib.hash import sha512_crypt; print sha512_crypt.encrypt('<password>')"
.. _commercial_support:
...
...
library/system/user
View file @
3b4f3f8c
...
...
@@ -77,8 +77,8 @@ options:
description:
- Optionally set the user's password to this crypted value. See
the user example in the github examples directory for what this looks
like in a playbook.
- Passwords values can be generated with "openssl passwd -salt <salt> -1 <plaintext>"
like in a playbook.
The `FAQ <http://docs.ansible.com/faq.html#how-do-i-generate-crypted-passwords-for-the-user-module>`_
contains details on various ways to generate these password values.
state:
required: false
default: "present"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment