Monday 7 March 2022

How To Install Ansible on Ubuntu 20.04


sudo apt install -f

#find dependencies

sudo apt install software-properties-common

#update package repositories and get the latest package information

sudo apt-add-repository ppa:ansible/ansible

#list of available software and install ansible

#It also pulls down Ansible PPA's signing key and adds it to the system

sudo apt update

sudo apt install ansible

ansible --version

ansible [core 2.12.2]

  config file = /etc/ansible/ansible.cfg

  configured module search path = ['/home/ubuntu/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']

  ansible python module location = /usr/lib/python3/dist-packages/ansible

  ansible collection location = /home/ubuntu/.ansible/collections:/usr/share/ansible/collections

  executable location = /usr/bin/ansible

  python version = 3.8.10 (default, Nov 26 2021, 20:14:08) [GCC 9.3.0]

  jinja version = 2.10.1

  libyaml = True

No comments:

Post a Comment