Skip to content

Instantly share code, notes, and snippets.

@leslie-leder
Last active April 1, 2016 09:24
Show Gist options
  • Save leslie-leder/add9d71ed5d6b1bb3e8d282d4ac667fb to your computer and use it in GitHub Desktop.
Save leslie-leder/add9d71ed5d6b1bb3e8d282d4ac667fb to your computer and use it in GitHub Desktop.
Ansible Cheat Sheet

Create User with Password

create a password on the command line:

[jpork@titania ansible]$ openssl passwd -salt salty -1 nice-password
$1$salty$1iSO7pdZGKyvOSE/eE0eF.

use password in ansible:

  tasks:
  - name: Create user
    user:
      name: anyuser
      password: $1$salty$v4L2MX2Z0/W7VwAuS1iJN/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment