Exporting Dynamic Inventories
The latest release of Ansible Automation Platform (2.5) has a lot of people looking at migrating configuration from older versions using validated content to apply configuration-as-code. Dynamic inventories present an interesting opportunity to simplify the export process. By default, if you use the export module from ansible.controller (or awx.awx), then all child entities (hosts and groups) will also be exported. However, since these inventories are dynamic and can be re-populated based on the inventory source configuration, the additional child configurations provide no value. In this post, I'll cover a workaround for existing functionality which can save you time. Autodotes Blog Post: https://autodotes.com/posts/c3w8Mn7Kpa1ImLlLfJQy Source Code: https://github.com/zjleblanc/ansible-cloud-mgmt/blob/master/playbooks/aap/export_dynamic_inventory.yml
Download
0 formatsNo download links available.