Lesson 1.2: Installing Ansible


Package Installation

  • Install Ansible in Control Node
# Install Extra Packages for enterprise linux (EPEL)
[root@serverA ~]# yum -y install epel-release
 
[root@serverA ~]# ls /etc/yum.repos.d/
backup              centos.repo               epel-next.repo          epel.repo
centos-addons.repo  epel-cisco-openh264.repo  epel-next-testing.repo  epel-testing.repo
 
# Install ansible package
[root@serverA ~]# yum -y install ansible
 
[root@serverA ~]# rpm -q ansible
ansible-7.7.0-1.el9.noarch
  • Install Python3 in Managed Hosts
# Instal python3 in all client machines 
# Client 1 (ServerB)
[root@serverB ~]# rpm -q python3
python3-3.9.20-1.el9.aarch64
# Client 2 (ServerC)
[root@serverC ~]# rpm -q python3
python3-3.9.18-1.el9.aarch64
All systems normal

© 2025 2023 Sanjeeb KC. All rights reserved.