Chapter 10: Incorporating your Python Scripts into an Existing Workflow by Writing Custom Ansible Modules
Ansible has, since its first release in early 2012, become a widely adopted tool for application deployment and infrastructure automation projects. Its vast ecosystem of pre-build modules allows you to describe the desired state of your infrastructure or application deployment using the YAML Ain't Markup Language (YAML) language. Being agentless, there is no need for a central controller that you send your instructions to for these to be carried out. Instead, your workstation running the description of tasks in the form of an Ansible playbook becomes the controller.
But have you ever wondered where all these modules that are pre-built for Ansible come from, and how they are implemented? In this chapter, we will get an introduction to developing your own Ansible modules. By developing modules, you can use Python to carry out complex workflows and then use Ansible and Ansible...