Created
February 24, 2018 17:04
-
-
Save maprangzth/0fb8a5347b54a97373c4b9a2deb833d6 to your computer and use it in GitHub Desktop.
Ansible Inventory File JSON Format
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
{ | |
"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