Fedora Project
Create dynamic inventory (Ansible) using Jinja2 templates
Goal
To create an inventory file using ansible template feature
Suggested approach
- pass variable in command using flag -e
- use jinja2 to define the structure to the inventory file
- use template module to pass variable to j2 files and create inventory
Deliverables
- Share j2 file and the playbook in a repo/gist and mail the link to the mentor (vipul@redhat.com)
Task tags
Students who completed this task
Margi, Arash, MatteCatte, nishantparhi