What is Ansible and Ansible Installation in Linux Ubuntu server - Tecnew

Home Ads

What is Ansible and Ansible Installation in Linux Ubuntu server

What is Ansible and Ansible Installation in Linux Ubuntu server

Share This
 Ansible:

1. Ansible is an automation configuration management tool it is used for software provisioning and application deployment

ansible can manage many servers

No agents (Target machines/services are accessed by 

No databases, 

No Complex setup

No residual software

 A package is a group of modules 

 A module is a group of functions

 2. Ansible uses YAML data structures 


Connections in Ansible

1.in Linux SSH connection

2.in Windows WINRM connection

3.in Cloud API connection


Ansible Architecture

 Playbooks are in the YAML format (are the scripts like having written in bash scripts)

Inventory file (Define the IP of the target hosts)

Modules (ansible has the more collection of modules)

When we execute the playbook, it uses the Ansible configuration to create a python package if the target is a server it pushes their execute and return the output

 Ansible Config (This is the brain and heart of the ansible)


Create security groups

Create security groups for control machines and host machines 


Installing Ansible

Launch an ec2 instance for the control machine and install the ansible in that machine

$ sudo apt update

$ sudo apt install software-properties-common

$ sudo apt-add-repository --yes --update ppa:ansible/ansible

$ sudo apt install ansible -y

Also launch the host ec2 instances and attach in to security groups 


No comments:

Post a Comment