Ansible Templates
- Ansible templates can be used to copy the files with dynamic data loaded from variables
- Refer Here for the official docs of the template module
- Refer Here for the changes done to accomodate dynamic values in the service file
- Refer Here for the changes done to make the users.xml file a dynamic variable based template
Ansible Inventory
- Inventories in ansible are of two formats
- ini format
- yaml format
- Inventory can be static or dynamic
- Ini or yaml formats are for static inventories
- Refer Here for the inventory docs
- Refer Here for the changeset containing the yaml based inventory file
- Refer Here for organizing the host and inventory variables.
- Refer Here for changeset containing ansible inventory with variables organized