Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/akshayavb99/ansible-examples
The repository contains all the Playbooks and other files used to work with different applications for Ansible
https://github.com/akshayavb99/ansible-examples
ansible ansible-playbooks docker dynamic-inventory-aws explanation hadoop-cluster linux-scripting loadbalancer rhel8 webserver webserver-setup webservers yum
Last synced: about 22 hours ago
JSON representation
The repository contains all the Playbooks and other files used to work with different applications for Ansible
- Host: GitHub
- URL: https://github.com/akshayavb99/ansible-examples
- Owner: akshayavb99
- License: mit
- Created: 2020-11-25T13:41:33.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-04-04T04:45:16.000Z (over 1 year ago)
- Last Synced: 2024-07-30T16:56:00.290Z (4 months ago)
- Topics: ansible, ansible-playbooks, docker, dynamic-inventory-aws, explanation, hadoop-cluster, linux-scripting, loadbalancer, rhel8, webserver, webserver-setup, webservers, yum
- Language: Python
- Homepage:
- Size: 309 KB
- Stars: 0
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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.](https://docs.ansible.com/ansible/latest/installation_guide/index.html)
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.](https://www.tecmint.com/sshpass-non-interactive-ssh-login-shell-script-ssh-password/#:~:text=Install%20sshpass%20on%20Linux%20Systems%20In%20RedHat%2FCentOS%20based,can%20install%20it%20using%20apt-get%20command%20as%20shown.)
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](https://github.com/akshayavb99/Ansible-Examples/tree/main/setup-samples)-----
## Examples
### [1. Setting up the YUM repository and Docker Community Edition in RHEL8](https://github.com/akshayavb99/Ansible-Examples/tree/main/docker-webserver)
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### [2. Setting up a Hadoop Cluster](https://github.com/akshayavb99/Ansible-Examples/tree/main/setup-hadoop)
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### [3. Setting up backend webservers with HAProxy Loadbalancer](https://github.com/akshayavb99/Ansible-Examples/tree/main/setup-haproxy)
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### [4. Setting up webservers and HAProxy Loadbalancer on AWS EC2 instances with dynamic inventory](https://github.com/akshayavb99/Ansible-Examples/tree/main/dynamic_aws_lb)
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](https://github.com/ansible/ansible/tree/stable-2.9/contrib/inventory)