Category: Software, github, automation, ansible

Today I am going to show you how to write a custom Ansible module for your specific use. Now if you have used or heard about Ansible you must have heard the term Module.

For this, we need to have two Linux boxes where we have Python 3 installed and in one of them(master/controller node) Ansible is configured.

main():write_to_file(): In this tutorial, we have learned the basics of how to write a basic Ansible module using Python.

We will meet again in part 2 where I will be showing you how to make a module where we will be making decisions based on the current state and distribution of target node and much other advanced stuff and the best practices too.

Related Articles