In this section, we will take you through a practical guide on creating your own plugin. The example will be, by necessity, simple. However, hopefully, it will serve you well in guiding you in the principles and best practices of plugin development and give you a solid foundation to build your own more complex plugins. We will even show you how to integrate these with your own playbooks and, when you're ready, submit them to the official Ansible project for inclusion.
As we noted when we built our own module, Ansible is written in Python, and its plugins are no exception. As a result, you will need to write your plugin in Python; so, to get started on developing your own plugin, you will need to make sure you have Python and a few essential tools installed. If you already have Ansible running on your development machine, you probably have the required...