akshayavb99 / Ansible-Examples

The repository contains all the Playbooks and other files used to work with different applications for Ansible

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ansible-Examples

Welcome!!

This repository contains all the Playbooks and other files used to work with different applications for Ansible. Each example is summarized below, and for more details on how to work on these examples yourseld, please go to the respective example's directory present in the main repository.

Pre-requisites

1.Ensure that you have Ansible installed on the system you are using as the controller node. For details on the installation, please refer to the official installation guide provided by Ansible.

2. Ensure that you have installed sshpass on the controller node, so that the controller can use the ssh connection to the host node(s) with password. For more details on the installation, please refer to this guide.

3. Setup the configuration file and the Inventory and check for connectivity between the controller and target nodes(s) as directed in the setup-examples directory


Examples

In this example, we will be looking at how we can configure the YUM repository and set up Docker Community Edition in RHEL8 using Ansible Playbooks and basic Linux scripting.
Detailed explanation: https://akshayavb99.medium.com/automation-with-ansible-common-terms-and-setting-up-docker-7a689c4fa8bb

In this example, we will be looking at how we can set up a Hadoop cluster using Ansible Playbooks and basic Linux scripting.
Detailed explanation:
https://akshayavb99.medium.com/automation-with-ansible-setting-up-hadoop-clusters-58bc47e5496d

In this example, we will be looking at how we can set up a loadbalancer for webservers using Ansible Playbooks.
Detailed explanation:
https://akshayavb99.medium.com/automation-with-ansible-setting-up-loadbalancers-using-haproxy-and-ansible-roles-3dd8313a38c9?source=friends_link&sk=bfe251b00918323b2fc07c8224dbbd9f

In this example, the objective of Example 3 is achieved again, but using AWS EC2 instances and dynamic Ansible Inventory. The files used for dynamic inventory (ec2.py and ec2.ini) used is taken from this repository

About

The repository contains all the Playbooks and other files used to work with different applications for Ansible

License:MIT License


Languages

Language:Python 90.7%Language:Jinja 8.9%Language:PHP 0.2%Language:Shell 0.1%Language:HTML 0.0%