Deploying Ansible in VM of Azure



Deploying Ansible in VM of Azure



We will start working in the controller.... Them eventually we will do it in the different hosts



These are the initial commands for Ansible installation on the controller

sudo su  -
yum update -y
yum install epel-release -y
yum install ansible -y





Now go to the directory

cd /etc/ansible/
ls
clear

We will create an inventory file for ansible
sudo vi host

(Shift) I
[centos]

[centos:vars]
ansible_user=root
ansible_password=Password1!
(esc) :wq

centos will be the name of our host machines,var are going to be the attributes like password and username









Deploying Ansible in VM of Azure Deploying Ansible in VM of Azure Reviewed by ohhhvictor on December 24, 2020 Rating: 5
Theme images by mariusFM77. Powered by Blogger.