Skip to content

Instantly share code, notes, and snippets.

@anshprat
Created March 22, 2016 00:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anshprat/01324ec73eac0f9cf8bf to your computer and use it in GitHub Desktop.
Save anshprat/01324ec73eac0f9cf8bf to your computer and use it in GitHub Desktop.
- hosts: all
user: root
vars:
# created with:
# python -c 'import crypt; print crypt.crypt("This is my Password", "$1$SomeSalt$")'
password: $1$0278683f$LKwlkE702yVFDCk7EBg2O1
tasks:
- user: name=sc password={{password}} groups="sudo"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment