Created
May 11, 2017 17:30
-
-
Save Bablzz/893f0b68925400e2ea578ffa3a37ba26 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 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