Tuesday, April 13, 2021

Ansible - Installation on Ubuntu 18.04

 



root@host1:~# which ansible

root@host1:~# 


root@host1:~# apt update

Hit:1 http://localrepo.localdomain.com/ubuntu/dists/bionic  InRelease

Hit:2 http://localrepo.localdomain.com/ubuntu/releases/puppet/bionic  InRelease

Hit:3 http://localrepo.localdomain.com/ubuntu/releases/bionic-latest bionic-security InRelease

Hit:4 http://localrepo.localdomain.com/ubuntu/releases/18.04.5 bionic-updates InRelease

Hit:5 http://localrepo.localdomain.com/ubuntu/releases/18.04.5 bionic InRelease

Hit:6 http://archive.ubuntu.com/ubuntu bionic InRelease         

Get:7 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]

Get:8 http://archive.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]

Get:9 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [2,006 kB]

Get:10 http://archive.ubuntu.com/ubuntu bionic-updates/main i386 Packages [1,263 kB]

Get:11 http://archive.ubuntu.com/ubuntu bionic-updates/main Translation-en [406 kB]

Get:12 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 DEP-11 Metadata [295 kB]

Get:13 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [1,729 kB]

Get:14 http://archive.ubuntu.com/ubuntu bionic-updates/universe i386 Packages [1,566 kB]

Get:15 http://archive.ubuntu.com/ubuntu bionic-updates/universe Translation-en [367 kB]

Get:16 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 DEP-11 Metadata [290 kB]

Get:17 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 DEP-11 Metadata [2,468 B]

Get:18 http://archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [305 kB]

Get:19 http://archive.ubuntu.com/ubuntu bionic-updates/restricted Translation-en [41.3 kB]

Get:20 http://archive.ubuntu.com/ubuntu bionic-security/main i386 Packages [959 kB]

Get:21 http://archive.ubuntu.com/ubuntu bionic-security/main amd64 Packages [1,664 kB]

Get:22 http://archive.ubuntu.com/ubuntu bionic-security/main Translation-en [314 kB]

Get:23 http://archive.ubuntu.com/ubuntu bionic-security/main amd64 DEP-11 Metadata [49.0 kB]

Get:24 http://archive.ubuntu.com/ubuntu bionic-security/universe i386 Packages [980 kB]

Get:25 http://archive.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [1,119 kB]

Get:26 http://archive.ubuntu.com/ubuntu bionic-security/universe Translation-en [252 kB]

Get:27 http://archive.ubuntu.com/ubuntu bionic-security/universe amd64 DEP-11 Metadata [60.3 kB]

Get:28 http://archive.ubuntu.com/ubuntu bionic-security/multiverse amd64 DEP-11 Metadata [2,464 B]

Get:29 http://archive.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [283 kB]

Get:30 http://archive.ubuntu.com/ubuntu bionic-security/restricted Translation-en [37.7 kB]

Fetched 14.2 MB in 10s (1,380 kB/s)                                                                                          

Reading package lists... Done

Building dependency tree       

Reading state information... Done

19 packages can be upgraded. Run 'apt list --upgradable' to see them.

root@host1:~# 

root@host1:~# apt install software-properties-common

Reading package lists... Done

Building dependency tree       

Reading state information... Done

software-properties-common is already the newest version (0.96.24.32.14).

0 upgraded, 0 newly installed, 0 to remove and 19 not upgraded.

root@host1:~# 

root@host1:~# apt-add-repository --yes --update ppa:ansible/ansible

Hit:1 http://localrepo.localdomain.com/ubuntu/dists/bionic  InRelease

Hit:2 http://localrepo.localdomain.com/ubuntu/releases/puppet/bionic  InRelease

Hit:3 http://localrepo.localdomain.com/ubuntu/releases/bionic-latest bionic-security InRelease

Hit:4 http://localrepo.localdomain.com/ubuntu/releases/18.04.5 bionic-updates InRelease

Hit:5 http://localrepo.localdomain.com/ubuntu/releases/18.04.5 bionic InRelease

Get:6 http://ppa.launchpad.net/ansible/ansible/ubuntu bionic InRelease [15.9 kB]                                 

Hit:7 http://archive.ubuntu.com/ubuntu bionic InRelease                                                          

Hit:8 http://archive.ubuntu.com/ubuntu bionic-updates InRelease                      

Hit:9 http://archive.ubuntu.com/ubuntu bionic-security InRelease

Get:10 http://ppa.launchpad.net/ansible/ansible/ubuntu bionic/main amd64 Packages [816 B]

Get:11 http://ppa.launchpad.net/ansible/ansible/ubuntu bionic/main i386 Packages [816 B]              

Get:12 http://ppa.launchpad.net/ansible/ansible/ubuntu bionic/main Translation-en [476 B]

Fetched 18.0 kB in 3s (6,092 B/s)                   

Reading package lists... Done

root@host1:~# 

root@host1:~# apt install ansible

Reading package lists... Done

Building dependency tree       

Reading state information... Done

The following additional packages will be installed:

  python-asn1crypto python-cffi-backend python-crypto python-cryptography python-enum34 python-httplib2 python-idna

  python-ipaddress python-jinja2 python-markupsafe python-paramiko python-pkg-resources python-setuptools python-six

  python-yaml sshpass

Suggested packages:

  python-crypto-doc python-cryptography-doc python-cryptography-vectors python-enum34-doc python-jinja2-doc python-gssapi

  python-setuptools-doc

The following NEW packages will be installed:

  ansible python-asn1crypto python-cffi-backend python-crypto python-cryptography python-enum34 python-httplib2 python-idna

  python-ipaddress python-jinja2 python-markupsafe python-paramiko python-pkg-resources python-setuptools python-six

  python-yaml sshpass

0 upgraded, 17 newly installed, 0 to remove and 19 not upgraded.

Need to get 7,392 kB of archives.

After this operation, 66.4 MB of additional disk space will be used.

Do you want to continue? [Y/n] Y

Get:1 http://localrepo.localdomain.com/ubuntu/releases/18.04.5 bionic/main amd64 python-markupsafe amd64 1.0-1build1 [13.0 kB]

Get:2 http://localrepo.localdomain.com/ubuntu/releases/bionic-latest bionic-security/main amd64 python-jinja2 all 2.10-1ubuntu0.18.04.1 [94.8 kB]

Get:3 http://localrepo.localdomain.com/ubuntu/releases/18.04.5 bionic/main amd64 python-yaml amd64 3.12-1build2 [115 kB]             

Get:4 http://localrepo.localdomain.com/ubuntu/releases/18.04.5 bionic/main amd64 python-asn1crypto all 0.24.0-1 [72.7 kB]            

Get:5 http://localrepo.localdomain.com/ubuntu/releases/18.04.5 bionic/main amd64 python-cffi-backend amd64 1.11.5-1 [63.4 kB]        

Get:6 http://localrepo.localdomain.com/ubuntu/releases/18.04.5 bionic/main amd64 python-enum34 all 1.1.6-2 [34.8 kB]                 

Get:7 http://localrepo.localdomain.com/ubuntu/releases/18.04.5 bionic/main amd64 python-idna all 2.6-1 [32.4 kB]                     

Get:8 http://localrepo.localdomain.com/ubuntu/releases/18.04.5 bionic/main amd64 python-ipaddress all 1.0.17-1 [18.2 kB]             

Get:9 http://localrepo.localdomain.com/ubuntu/releases/18.04.5 bionic/main amd64 python-six all 1.11.0-2 [11.3 kB]                   

Get:10 http://localrepo.localdomain.com/ubuntu/releases/bionic-latest bionic-security/main amd64 python-cryptography amd64 2.1.4-1ubuntu1.4 [276 kB]

Get:11 http://localrepo.localdomain.com/ubuntu/releases/bionic-latest bionic-security/main amd64 python-paramiko all 2.0.0-1ubuntu1.2 [110 kB]

Get:12 http://localrepo.localdomain.com/ubuntu/releases/18.04.5 bionic/main amd64 python-crypto amd64 2.6.1-8ubuntu2 [244 kB]        

Get:13 http://localrepo.localdomain.com/ubuntu/releases/18.04.5 bionic/main amd64 python-pkg-resources all 39.0.1-2 [128 kB]         

Get:14 http://localrepo.localdomain.com/ubuntu/releases/18.04.5 bionic/main amd64 python-setuptools all 39.0.1-2 [329 kB]

Get:15 http://localrepo.localdomain.com/ubuntu/releases/18.04.5 bionic/universe amd64 sshpass amd64 1.06-1 [10.5 kB]

Get:16 http://ppa.launchpad.net/ansible/ansible/ubuntu bionic/main amd64 ansible all 2.9.20-1ppa~bionic [5,804 kB]

Get:17 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 python-httplib2 all 0.9.2+dfsg-1ubuntu0.3 [34.9 kB]

Fetched 7,392 kB in 2s (4,867 kB/s)                                          

Selecting previously unselected package python-markupsafe.

(Reading database ... 350454 files and directories currently installed.)

Preparing to unpack .../00-python-markupsafe_1.0-1build1_amd64.deb ...

Unpacking python-markupsafe (1.0-1build1) ...

Selecting previously unselected package python-jinja2.

Preparing to unpack .../01-python-jinja2_2.10-1ubuntu0.18.04.1_all.deb ...

Unpacking python-jinja2 (2.10-1ubuntu0.18.04.1) ...

Selecting previously unselected package python-yaml.

Preparing to unpack .../02-python-yaml_3.12-1build2_amd64.deb ...

Unpacking python-yaml (3.12-1build2) ...

Selecting previously unselected package python-asn1crypto.

Preparing to unpack .../03-python-asn1crypto_0.24.0-1_all.deb ...

Unpacking python-asn1crypto (0.24.0-1) ...

Selecting previously unselected package python-cffi-backend.

Preparing to unpack .../04-python-cffi-backend_1.11.5-1_amd64.deb ...

Unpacking python-cffi-backend (1.11.5-1) ...

Selecting previously unselected package python-enum34.

Preparing to unpack .../05-python-enum34_1.1.6-2_all.deb ...

Unpacking python-enum34 (1.1.6-2) ...

Selecting previously unselected package python-idna.

Preparing to unpack .../06-python-idna_2.6-1_all.deb ...

Unpacking python-idna (2.6-1) ...

Selecting previously unselected package python-ipaddress.

Preparing to unpack .../07-python-ipaddress_1.0.17-1_all.deb ...

Unpacking python-ipaddress (1.0.17-1) ...

Selecting previously unselected package python-six.

Preparing to unpack .../08-python-six_1.11.0-2_all.deb ...

Unpacking python-six (1.11.0-2) ...

Selecting previously unselected package python-cryptography.

Preparing to unpack .../09-python-cryptography_2.1.4-1ubuntu1.4_amd64.deb ...

Unpacking python-cryptography (2.1.4-1ubuntu1.4) ...

Selecting previously unselected package python-paramiko.

Preparing to unpack .../10-python-paramiko_2.0.0-1ubuntu1.2_all.deb ...

Unpacking python-paramiko (2.0.0-1ubuntu1.2) ...

Selecting previously unselected package python-httplib2.

Preparing to unpack .../11-python-httplib2_0.9.2+dfsg-1ubuntu0.3_all.deb ...

Unpacking python-httplib2 (0.9.2+dfsg-1ubuntu0.3) ...

Selecting previously unselected package python-crypto.

Preparing to unpack .../12-python-crypto_2.6.1-8ubuntu2_amd64.deb ...

Unpacking python-crypto (2.6.1-8ubuntu2) ...

Selecting previously unselected package python-pkg-resources.

Preparing to unpack .../13-python-pkg-resources_39.0.1-2_all.deb ...

Unpacking python-pkg-resources (39.0.1-2) ...

Selecting previously unselected package python-setuptools.

Preparing to unpack .../14-python-setuptools_39.0.1-2_all.deb ...

Unpacking python-setuptools (39.0.1-2) ...

Selecting previously unselected package sshpass.

Preparing to unpack .../15-sshpass_1.06-1_amd64.deb ...

Unpacking sshpass (1.06-1) ...

Selecting previously unselected package ansible.

Preparing to unpack .../16-ansible_2.9.20-1ppa~bionic_all.deb ...

Unpacking ansible (2.9.20-1ppa~bionic) ...

Setting up python-idna (2.6-1) ...

Setting up python-yaml (3.12-1build2) ...

Setting up python-asn1crypto (0.24.0-1) ...

Setting up python-crypto (2.6.1-8ubuntu2) ...

Setting up python-pkg-resources (39.0.1-2) ...

Setting up python-markupsafe (1.0-1build1) ...

Setting up python-httplib2 (0.9.2+dfsg-1ubuntu0.3) ...

Setting up python-cffi-backend (1.11.5-1) ...

Setting up python-six (1.11.0-2) ...

Setting up sshpass (1.06-1) ...

Setting up python-enum34 (1.1.6-2) ...

Setting up python-ipaddress (1.0.17-1) ...

Setting up python-setuptools (39.0.1-2) ...

Setting up python-jinja2 (2.10-1ubuntu0.18.04.1) ...

Setting up python-cryptography (2.1.4-1ubuntu1.4) ...

Setting up python-paramiko (2.0.0-1ubuntu1.2) ...

Setting up ansible (2.9.20-1ppa~bionic) ...

Processing triggers for man-db (2.8.3-2ubuntu0.1) ...

root@host1:~# 

root@host1:~# which ansible

/usr/bin/ansible

root@host1:~# 

root@host1:~# 


No comments: