Setting up the module structure
Functionality in Ansible is provided and can be extended in two different ways: by writing either a module or a plugin. Ansible defines a module as "reusable, standalone scripts that can be used by the Ansible API, the ansible command, or the ansible-playbook command. Modules provide a defined interface. Each module accepts arguments and returns information…"(see https://docs.ansible.com/ansible/latest/dev_guide/developing_locally.html#modules-and-plugins-what-is-the-difference). An example of such a module could be one command that is executed on a remote device and retrieves some information for you. Writing your own modules can allow you to integrate internal tools, or tools where no module exists yet, into your existing Ansible-based automation plays. Modules for Ansible can be developed in many different languages, but since the core of Ansible is written in Python and most modules are also written in Python, we are going to focus...