install ansible on ubuntu 18.04 code example
Example 1: install ansible on ubuntu 18.04
$ sudo apt update
$ sudo apt install software-properties-common
$ sudo add-apt-repository --yes --update ppa:ansible/ansible
$ sudo apt install ansible
Example 2: install ansible in ubuntu
On Fedora:
$ sudo dnf install ansible
On RHEL and CentOS:
$ sudo yum install ansible
On Ubuntu:
$ sudo apt-add-repository --yes --update ppa:ansible/ansible
$ sudo apt install ansible
Using PIP:
$ pip install --user ansible
On Alpine:
$ apk add ansible
sudo apt install ansible
Example 3: Install ansible in alpine linux
$ apk add ansible
Example 4: how to install ansible in centos
[root@ansible ~]# yum install epel-release -y