Skip to content

Instantly share code, notes, and snippets.

Created March 27, 2013 08:24
Show Gist options
  • Save anonymous/5252645 to your computer and use it in GitHub Desktop.
Save anonymous/5252645 to your computer and use it in GitHub Desktop.
value
- name: create user ${myuser}
action: user name=${myuser} shell=/bin/bash
- name: create user ${myuser}
action: shell mkdir /opt/${myuser}
[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
- 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