AnsibleInstallation

Installation

Installing Ansible Core on the control host.

Executed:

root@uvm0:~# apt update && apt upgrade -y && apt autoclean && apt autoremove
root@uvm0:~# apt install software-properties-common
root@uvm0:~# apt list -a ansible
root@uvm0:~# apt list -a ansible-core
root@uvm0:~# add-apt-repository --yes --update ppa:ansible/ansible
root@uvm0:~# apt list -a ansible
root@uvm0:~# apt list -a ansible-core
root@uvm0:~# apt install ansible-core
aadmin@uvm0:~$ ansible --version

Details

root@uvm0:~# apt update && apt upgrade -y && apt autoclean && apt autoremove
Get:1 http://security.ubuntu.com/ubuntu noble-security InRelease [126 kB]
Hit:2 http://de.archive.ubuntu.com/ubuntu noble InRelease
Get:3 http://de.archive.ubuntu.com/ubuntu noble-updates InRelease [126 kB]
Hit:4 http://de.archive.ubuntu.com/ubuntu noble-backports InRelease
Get:5 http://security.ubuntu.com/ubuntu noble-security/main amd64 Packages [428 kB]
Get:6 http://de.archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages [597 kB]
Get:7 http://security.ubuntu.com/ubuntu noble-security/main Translation-en [92.5 kB]
Get:8 http://security.ubuntu.com/ubuntu noble-security/restricted amd64 Packages [385 kB]
Get:9 http://security.ubuntu.com/ubuntu noble-security/restricted Translation-en [74.4 kB]
Get:10 http://de.archive.ubuntu.com/ubuntu noble-updates/main Translation-en [146 kB]
Get:11 http://de.archive.ubuntu.com/ubuntu noble-updates/main amd64 c-n-f Metadata [10.3 kB]
Get:12 http://de.archive.ubuntu.com/ubuntu noble-updates/restricted amd64 Packages [388 kB]
Get:13 http://de.archive.ubuntu.com/ubuntu noble-updates/restricted Translation-en [74.8 kB]
Fetched 2,448 kB in 2s (1,227 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
38 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following upgrades have been deferred due to phasing:
  initramfs-tools initramfs-tools-bin initramfs-tools-core python3-distupgrade ubuntu-release-upgrader-core
...
 
 
root@uvm0:~# apt install software-properties-common
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
software-properties-common is already the newest version (0.99.48).
software-properties-common set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
 
 
root@uvm0:~# apt list -a ansible
Listing... Done
ansible/noble 9.2.0+dfsg-0ubuntu5 all
 
 
root@uvm0:~# apt list -a ansible-core
Listing... Done
ansible-core/noble 2.16.3-0ubuntu2 all
 
 
root@uvm0:~# add-apt-repository --yes --update ppa:ansible/ansible
Repository: 'Types: deb
URIs: https://ppa.launchpadcontent.net/ansible/ansible/ubuntu/
Suites: noble
Components: main
'
Description:
Ansible is a radically simple IT automation platform that makes your applications and systems easier to deploy. Avoid writing scripts or custom code to deploy and update your applications— automate in a language that approaches plain English, using SSH, with no agents to install on remote systems.
 
http://ansible.com/
 
If you face any issues while installing Ansible PPA, file an issue here:
https://github.com/ansible-community/ppa/issues
More info: https://launchpad.net/~ansible/+archive/ubuntu/ansible
Adding repository.
Hit:1 http://de.archive.ubuntu.com/ubuntu noble InRelease
Hit:2 http://de.archive.ubuntu.com/ubuntu noble-updates InRelease
Hit:3 http://de.archive.ubuntu.com/ubuntu noble-backports InRelease
Hit:4 https://esm.ubuntu.com/apps/ubuntu noble-apps-security InRelease
Hit:5 https://esm.ubuntu.com/apps/ubuntu noble-apps-updates InRelease
Hit:6 https://esm.ubuntu.com/infra/ubuntu noble-infra-security InRelease
Hit:7 https://esm.ubuntu.com/infra/ubuntu noble-infra-updates InRelease
Hit:8 http://security.ubuntu.com/ubuntu noble-security InRelease
Get:9 https://ppa.launchpadcontent.net/ansible/ansible/ubuntu noble InRelease [17.8 kB]
Get:10 https://ppa.launchpadcontent.net/ansible/ansible/ubuntu noble/main amd64 Packages [776 B]
Get:11 https://ppa.launchpadcontent.net/ansible/ansible/ubuntu noble/main Translation-en [472 B]
Fetched 19.1 kB in 7s (2,671 B/s)
Reading package lists... Done
 
 
root@uvm0:~# apt list -a ansible
Listing... Done
ansible/noble 10.5.0-1ppa~noble all
ansible/noble 9.2.0+dfsg-0ubuntu5 all
 
 
root@uvm0:~# apt list -a ansible-core
Listing... Done
ansible-core/noble 2.17.5-1ppa~noble all
ansible-core/noble 2.16.3-0ubuntu2 all
 
 
root@uvm0:~# apt install ansible-core
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  python3-nacl python3-packaging python3-paramiko python3-resolvelib sshpass
Suggested packages:
  ansible python-nacl-doc python3-gssapi python3-invoke
The following NEW packages will be installed:
  ansible-core python3-nacl python3-packaging python3-paramiko python3-resolvelib sshpass
0 upgraded, 6 newly installed, 0 to remove and 5 not upgraded.
Need to get 1,287 kB of archives.
After this operation, 7,726 kB of additional disk space will be used.
Do you want to continue? [Y/n] <ENTER>
Get:1 http://de.archive.ubuntu.com/ubuntu noble/main amd64 python3-packaging all 24.0-1 [41.1 kB]
Get:2 http://de.archive.ubuntu.com/ubuntu noble/universe amd64 python3-resolvelib all 1.0.1-1 [25.7 kB]
Get:3 http://de.archive.ubuntu.com/ubuntu noble/main amd64 python3-nacl amd64 1.5.0-4build1 [57.9 kB]
Get:4 http://de.archive.ubuntu.com/ubuntu noble/main amd64 python3-paramiko all 2.12.0-2ubuntu4 [137 kB]
Get:5 http://de.archive.ubuntu.com/ubuntu noble/universe amd64 sshpass amd64 1.09-1 [11.7 kB]
Get:6 https://ppa.launchpadcontent.net/ansible/ansible/ubuntu noble/main amd64 ansible-core all 2.17.5-1ppa~noble [1,014 kB]
Fetched 1,287 kB in 2s (847 kB/s)
Selecting previously unselected package python3-packaging.
(Reading database ... 83555 files and directories currently installed.)
Preparing to unpack .../0-python3-packaging_24.0-1_all.deb ...
Unpacking python3-packaging (24.0-1) ...
Selecting previously unselected package python3-resolvelib.
Preparing to unpack .../1-python3-resolvelib_1.0.1-1_all.deb ...
Unpacking python3-resolvelib (1.0.1-1) ...
Selecting previously unselected package ansible-core.
Preparing to unpack .../2-ansible-core_2.17.5-1ppa~noble_all.deb ...
Unpacking ansible-core (2.17.5-1ppa~noble) ...
Selecting previously unselected package python3-nacl.
Preparing to unpack .../3-python3-nacl_1.5.0-4build1_amd64.deb ...
Unpacking python3-nacl (1.5.0-4build1) ...
Selecting previously unselected package python3-paramiko.
Preparing to unpack .../4-python3-paramiko_2.12.0-2ubuntu4_all.deb ...
Unpacking python3-paramiko (2.12.0-2ubuntu4) ...
Selecting previously unselected package sshpass.
Preparing to unpack .../5-sshpass_1.09-1_amd64.deb ...
Unpacking sshpass (1.09-1) ...
Setting up python3-resolvelib (1.0.1-1) ...
Setting up sshpass (1.09-1) ...
Setting up python3-packaging (24.0-1) ...
Setting up python3-nacl (1.5.0-4build1) ...
Setting up ansible-core (2.17.5-1ppa~noble) ...
Setting up python3-paramiko (2.12.0-2ubuntu4) ...
Processing triggers for man-db (2.12.0-4build2) ...
Scanning processes...
Scanning candidates...
Scanning linux images...
 
Running kernel seems to be up-to-date.
 
Restarting services...
 
Service restarts being deferred:
/etc/needrestart/restart.d/dbus.service
 
No containers need to be restarted.
 
User sessions running outdated binaries:
user @ user manager service: systemd[1168]
 
No VM guests are running outdated hypervisor (qemu) binaries on this host.
 
 
aadmin@uvm0:~$ ansible --version
ansible [core 2.17.5]
config file = /etc/ansible/ansible.cfg
configured module search path = ['/home/aadmin/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3/dist-packages/ansible
ansible collection location = /home/aadmin/.ansible/collections:/usr/share/ansible/collections
executable location = /usr/bin/ansible
python version = 3.12.3 (main, Sep 11 2024, 14:17:37) [GCC 13.2.0] (/usr/bin/python3)
jinja version = 3.1.2
libyaml = True