DevOps Articles

Curated articles, resources, tips and trends from the DevOps World.

Creating Custom Ansible Module (Part 1)

5 years ago medium.com
Creating Custom Ansible Module (Part 1)

Summary: This is a summary of an article originally published by the source. Read the full original article here →

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.

Made with pure grit © 2024 Jetpack Labs Inc. All rights reserved. www.jetpacklabs.com