GitHub - bitmand/ansible-inventory: Ansible dynamic ...
https://github.com/bitmand/ansible-inventory08.12.2020 · Dynamically build Ansible inventory. This is a dynamic alternative to Ansible static inventory file. Instead of writing a static hosts file with groups and hosts, it simply reads the YAML files in host_vars/*.yml and creates a dynamic inventory based on them.. The dynamic inventory script is called inventory in this example and simply by running it you should get some json output: