Last active
April 25, 2019 10:35
-
-
Save jtyr/5213fabf2bcb943efc82f00959b91163 to your computer and use it in GitHub Desktop.
Ansible dynamic inventory script that reads any Ansible hosts file and transforms it into the JSON data structure.
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
This was moved to https://github.com/jtyr/ansible-ini_inventory |
Something like this should work https://gist.github.com/narkq/300e2c85f2054353d3034afde3ea846e
I have fixed to error and moved the script into a proper GitHub repo here.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Found this tip really useful. Thanks for putting this together. got me looking for what I needed in the 2.4 patch
Here's something similar to what I've implemented in my code.