Created
March 27, 2013 08:24
-
-
Save anonymous/5252645 to your computer and use it in GitHub Desktop.
value
This file contains hidden or 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
- name: create user ${myuser} | |
action: user name=${myuser} shell=/bin/bash |
This file contains hidden or 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
- name: create user ${myuser} | |
action: shell mkdir /opt/${myuser} |
This file contains hidden or 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
[servers] | |
10.132.219.68 | |
10.132.219.60 | |
[servers:vars] | |
myuser=11111111111111 | |
password=123123 | |
[crmweb] | |
10.132.219.68 | |
[crmweb:vars] | |
myuser=77777777777777777777 | |
password=123123 |
This file contains hidden or 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: servers | |
user: root | |
tasks: | |
- include: createuser.yml | |
- hosts: crmweb | |
tasks: | |
- include: createuser1.yml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment