Skip to content

Instantly share code, notes, and snippets.

@Bablzz
Created May 11, 2017 17:30
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 Bablzz/893f0b68925400e2ea578ffa3a37ba26 to your computer and use it in GitHub Desktop.
Save Bablzz/893f0b68925400e2ea578ffa3a37ba26 to your computer and use it in GitHub Desktop.
- hosts: host1
vars:
# created with:
# python -c "from passlib.hash import sha512_crypt; import getpass; print sha512_crypt.using(rounds=1000).hash(getpass.getpass())"
password: "$6$rounds=1000$7dsUf2EPFiC7m4FV$RM9lxRRaannAAmOfRbjvk9V8OSENyFxBaMkOFnIvjeECw39QLCXfFvJlRqGhypDjG8RKOjwp1ufJJD3JZSpu2."
user: "test_user"
tasks:
- name: "Create group"
group:
name: test
state: present
- name: "Create user"
user:
name: "{{user}}"
groups: test
password: "{{password}}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment