Skip to content

Instantly share code, notes, and snippets.

@maprangzth
Created February 24, 2018 17:04
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maprangzth/0fb8a5347b54a97373c4b9a2deb833d6 to your computer and use it in GitHub Desktop.
Save maprangzth/0fb8a5347b54a97373c4b9a2deb833d6 to your computer and use it in GitHub Desktop.
Ansible Inventory File JSON Format
{
"centos": {
"hosts": {
"centos1": {
"ansible_port": 2222
},
"centos2": null,
"centos3": null
},
"vars": {
"ansible_user": "root"
}
},
"ubuntu": {
"hosts": {
"ubuntu1": null,
"ubuntu2": null,
"ubuntu3": null
},
"vars": {
"ansible_become": true,
"ansible_become_pass": "password"
}
},
"linux": {
"children": {
"centos": null,
"ubuntu": null
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment