This document provides tips and tricks for using Ansible more effectively. It discusses best practices for inventory structure and variable organization. The key points are:
- Inventory structure and variable organization should make sense for your environment rather than following a "one size fits all" approach. Context is important.
- Variables can be defined in many places like inventory files, group variables, host variables, role defaults etc. and Ansible has a precedence order for variables.
- Playbooks can be made to run tasks in parallel using tools like parallel or by running tasks asynchronously to improve performance for non-serial tasks.