Cover; Title Page; Copyright and Credits; About Packt; Contributors; Table of Contents; Preface; Section 1: Ansible Overview and Fundamentals; Chapter 1: The System Architecture and Design of Ansible; Technical requirements; Ansible version and configuration; Inventory parsing and data sources; Static inventory; Inventory ordering; Inventory variable data; Dynamic inventories; Runtime inventory additions; Inventory limiting; Playbook parsing; Order of operations; Relative path assumptions; Play behavior directives; Execution strategies; Host selection for plays and tasks; Play and task names
Module transport and executionModule reference; Module arguments; Moduleblacklisting; Module transport and execution; Task performance; Variable types and location; Variable types; Magic variables; Accessing external data; Variable precedence; Precedence order; Variable group priority ordering; Merging hashes; Summary; Chapter 2: Protecting Your Secrets with Ansible; Technical requirements; Encrypting data at rest; Vault IDs and passwords; Things Vault can encrypt; Creating new encrypted files; Password prompt; Password file; Password script; Encrypting existing files
Editing encrypted filesPassword rotation on encrypted files; Decrypting encrypted files; Executing Ansible-playbook with encrypted files; Mixing encrypted data with plain YAML; Protecting secrets while operating; Secrets transmitted to remote hosts; Secrets logged to remote or local files; Summary; Chapter 3: Ansible and Windows
Not Just for Linux; Technical requirements; Running Ansible from Windows; Checking your build; Enabling WSL; Installing Linux under WSL; Setting up Windows hosts for Ansible control; System requirements for automation with Ansible; Enabling the WinRM listener
Connecting Ansible to WindowsHandling Windows authentication and encryption; Authentication mechanisms; A note on accounts; Certificate validation; Automating Windows tasks with Ansible; Picking the right module; Installing software; Extending beyond modules; Summary; Chapter 4: Infrastructure Management for Enterprises with AWX; Technical requirements; Getting AWX up and running; Integrating AWX with your first playbook; Defining a project; Defining an inventory; Defining credentials; Defining a template; Going beyond the basics; Role-based access control (RBAC); Organizations; Scheduling
AuditingSurveys; Workflow templates; Notifications; Summary; Section 2: Writing and Troubleshooting Ansible Playbooks; Chapter 5: Unlocking the Power of Jinja2 Templates; Technical requirements; Control structures; Conditionals; Inline conditionals; Loops; Filtering loop items; Loop indexing; Macros; Macro variables; name; arguments; defaults; catch_kwargs; catch_varargs; caller; Data manipulation; Syntax; Useful built-in filters; default; count; random; round; Useful Ansible provided custom filters; Filters related to task status; shuffle; Filters dealing with path names; basename; dirname