The document discusses how to make Ansible playbooks flexible, maintainable, and scalable. It recommends staying organized by keeping playbooks in source control and including documentation. It also stresses the importance of testing playbooks early and often using tools like YAML linting, Ansible syntax checks, Ansible lint, and test environments. Finally, it suggests simplifying playbooks by using flat variables instead of nested dictionaries, optimizing tasks to disable facts gathering when unnecessary, and using templates instead of lineinfile modules.
36. • CI is useless if slow
• Disable gather_facts if not needed
• forks config - fully utilize resources
S P E E D
37. M O D U L E S
• package - pass list to name instead of a loop
• copy - only for single files or small dirs
• lineinfile - try to switch to template
instead of looping on one file