Use inventory plugin instead of script for Python dynamic inventory example
See: Developing dynamic inventory.
Scripts are now actually executed using the 'script' inventory plugin. It's preferred nowadays to write an inventory plugin to use dynamic inventory rather than writing an inventory script (unless you want to maintain the script in a non-Python language).
So maybe keep the PHP-based script example, but change the Python one to an inventory plugin.
And a few more examples I found today from AnsibleFest 2019:
- https://github.com/willtome/managing-meaningful-inventories
- https://www.ansible.com/hubfs//AnsibleFest%20ATL%20Slide%20Decks/AnsibleFest%202019%20-%20Managing%20Meaningful%20Inventories.pdf
Also some helpful inventory debugging commands, like:
ansible-inventory -i [inventory] --list
Merging older issue #120 into this one.
Highly related: #275, Episode 11 of Ansible 101 live stream.