Learning Ansible 2.7 - Third Edition


Published by Packt Publishing Limited

Ansible is an open source automation platform that assists organizations with tasks such as application deployment, orchestration, and task automation. With the release of Ansible 2.7, even complex tasks can be handled much more easily than before.

Learning Ansible 2.7 will help you take your first steps toward understanding the fundamentals and practical aspects of Ansible by introducing you to topics such as playbooks, modules, and installation of Linux, Berkeley Software Distribution (BSD), and Windows Support. In addition to this, you will focus on various testing strategies, deployment, and orchestration to build on your knowledge. The book will then help you get accustomed to features including cleaner architecture, task blocks, and playbook parsing, which can help you to streamline automation processes. Next, you will learn how to integrate Ansible with cloud platforms such as Amazon Web Services (AWS) before gaining insights into the enterprise versions of Ansible, Ansible Tower and Ansible Galaxy. This will help you to use Ansible to interact with different operating systems and improve your working efficiency.

By the end of this book, you will be equipped with the Ansible skills you need to automate complex tasks for your organizations.

Table of Contents

  1. Getting started with Ansible
  2. Automating simple tasks
  3. Scaling to multiple hosts
  4. Handling complex deployment
  5. Going cloud
  6. Getting notifications from Ansible
  7. Creating a custom module
  8. Debugging and error handling
  9. Complex environments
  10. Introducing Ansible for enterprises
  11. Getting started with AWX
  12. Working with AWX users, permissions and organizations configurations

What You Will Learn

  • Create a web server using Ansible
  • Write a custom module and test it
  • Deploy playbooks in the production environment
  • Troubleshoot networks using Ansible
  • Use Ansible Galaxy and Ansible Tower during deployments
  • Deploy an application with Ansible on AWS and DigitalOcean