Practical Ansible 2 $$b Effectively Automate Configuration Management and Deployments to Avoid Application Downtime. $$c Daniel Oh (author), Fabio Alessandro Locati (author).
Anyone with responsibility for an IT infrastructure will benefit from the increased efficiency and reliability that can be delivered through automation with Ansible, an open-source, agentless tool that automates cloud provisioning, configuration management, application deployment, and many other inf...
Clasificación: | Libro Electrónico |
---|---|
Autores principales: | , , |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Packt Publishing
2020.
|
Edición: | 1st edition. |
Temas: | |
Acceso en línea: | Texto completo (Requiere registro previo con correo institucional) |
Tabla de Contenidos:
- Cover
- Title Page
- Copyright and Credits
- About Packt
- Contributors
- Table of Contents
- Preface
- Section 1: Learning the Fundamentals of Ansible
- Chapter 1: Getting Started with Ansible
- Technical requirements
- Installing and configuring Ansible
- Installing Ansible on Linux and FreeBSD
- Installing Ansible on macOS
- Configuring Windows hosts for Ansible
- Understanding your Ansible installation
- Understanding how Ansible connects to hosts
- Verifying the Ansible installation
- Managed node requirements
- Running from source versus pre-built RPMs
- Summary
- Questions
- Further reading
- Chapter 2: Understanding the Fundamentals of Ansible
- Technical requirements
- Getting familiar with the Ansible framework
- Breaking down the Ansible components
- Learning the YAML syntax
- Organizing your automation code
- Exploring the configuration file
- Command-line arguments
- Understanding ad hoc commands
- Defining variables
- Understanding Jinja2 filters
- Summary
- Questions
- Further reading
- Chapter 3: Defining Your Inventory
- Technical requirements
- Creating an inventory file and adding hosts
- Using host groups
- Adding host and group variables to your inventory
- Generating a dynamic inventory file
- Using multiple inventory sources in the inventory directories
- Using static groups with dynamic groups
- Special host management using patterns
- Summary
- Questions
- Further reading
- Chapter 4: Playbooks and Roles
- Technical requirements
- Understanding the playbook framework
- Comparing playbooks and ad hoc tasks
- Defining plays and tasks
- Understanding roles
- the playbook organizer
- Setting up role-based variables and dependencies
- Ansible Galaxy
- Using conditions in your code
- Repeating tasks with loops
- Grouping tasks using blocks
- Configuring play execution via strategies
- Using ansible-pull
- Summary
- Questions
- Further reading
- Section 2: Expanding the Capabilities of Ansible
- Chapter 5: Consuming and Creating Modules
- Technical requirements
- Executing multiple modules using the command line
- Reviewing the module index
- Accessing module documentation from the command line
- Module return values
- Developing custom modules
- Avoiding common pitfalls
- Testing and documenting your module
- The module checklist
- Contributing upstream
- submitting a GitHub pull request
- Summary
- Questions
- Further reading
- Chapter 6: Consuming and Creating Plugins
- Technical requirements
- Discovering the plugin types
- Finding included plugins
- Creating custom plugins
- Learning to integrate custom plugins with Ansible source code
- Sharing plugins with the community
- Summary
- Questions
- Further reading
- Chapter 7: Coding Best Practices
- Technical requirements
- The preferred directory layout
- The best approach to cloud inventories
- Differentiating between different environment types