wazuh / wazuh-documentation

Wazuh - Project documentation
https://wazuh.com
195 stars 347 forks source link

Signature Key Error for Ansible Deployment #7924

Open jk-olaoluwa opened 16 hours ago

jk-olaoluwa commented 16 hours ago

Description

This issue was created during the E2E testing https://github.com/wazuh/wazuh/issues/26405. The documentation section Installation on Debian/Ubuntu produces the below error in Debian 11:

root@ip-:/home/admin# echo "deb http://ppa.launchpad.net/ansible/ansible/ubuntu trusty main" | sudo tee -a /etc/apt/sources.list.d/ansible-debian.list
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 93C4A3FD7BB9C367
apt-get update
deb http://ppa.launchpad.net/ansible/ansible/ubuntu trusty main
E: gnupg, gnupg2 and gnupg1 do not seem to be installed, but one of them is required for this operation
Hit:1 http://security.debian.org/debian-security bullseye-security InRelease
Hit:2 http://cdn-aws.deb.debian.org/debian bullseye InRelease
Hit:3 http://cdn-aws.deb.debian.org/debian bullseye-updates InRelease
Hit:4 http://cdn-aws.deb.debian.org/debian bullseye-backports InRelease
Get:5 http://ppa.launchpad.net/ansible/ansible/ubuntu trusty InRelease [16.0 kB]
Err:5 http://ppa.launchpad.net/ansible/ansible/ubuntu trusty InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 93C4A3FD7BB9C367
Reading package lists... Done
W: GPG error: http://ppa.launchpad.net/ansible/ansible/ubuntu trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 93C4A3FD7BB9C367
E: The repository 'http://ppa.launchpad.net/ansible/ansible/ubuntu trusty InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
rauldpm commented 8 hours ago

Hi @wazuh-devel-devops, please take a look at my comment about the Ansible installation steps

vcerenu commented 7 hours ago

Update

The error presented does not depend on the package we are going to install, but on the base operating system. I have performed a test with the official Debian box:

config.vm.box = "debian/bullseye64"
config.vm.box_version = "11.20240905.1"

The result of the test has been the same as the error, because Debian in its official version does not add gnupg to the preinstalled packages:

root@master:~# cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
root@master:~# apt-get update
Get:1 https://deb.debian.org/debian bullseye InRelease [116 kB]
Get:2 https://security.debian.org/debian-security bullseye-security InRelease [27.2 kB]
Get:3 https://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]
Get:4 https://deb.debian.org/debian bullseye-backports InRelease [49.0 kB]
Get:5 https://security.debian.org/debian-security bullseye-security/main Sources [210 kB]
Get:6 https://security.debian.org/debian-security bullseye-security/main amd64 Packages [306 kB]
Get:7 https://security.debian.org/debian-security bullseye-security/main Translation-en [197 kB]
Get:8 https://deb.debian.org/debian bullseye/main Sources [8500 kB]
Get:9 https://deb.debian.org/debian bullseye/main amd64 Packages [8066 kB]
Get:10 https://deb.debian.org/debian bullseye/main Translation-en [6235 kB]
Get:11 https://deb.debian.org/debian bullseye-updates/main Sources [7908 B]
Get:12 https://deb.debian.org/debian bullseye-updates/main amd64 Packages [18.8 kB]
Get:13 https://deb.debian.org/debian bullseye-updates/main Translation-en [10.9 kB]
Get:14 https://deb.debian.org/debian bullseye-backports/main Sources [376 kB]
Get:15 https://deb.debian.org/debian bullseye-backports/main amd64 Packages [403 kB]
Get:16 https://deb.debian.org/debian bullseye-backports/main Translation-en [344 kB]
Fetched 24.9 MB in 4s (6590 kB/s)
Reading package lists... Done
root@master:~# apt-get install lsb-release software-properties-common
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
lsb-release is already the newest version (11.1.0).
lsb-release set to manually installed.
The following additional packages will be installed:
  gir1.2-glib-2.0 gir1.2-packagekitglib-1.0 iso-codes libappstream4 libdw1 libgirepository-1.0-1
  libglib2.0-bin libglib2.0-data libgstreamer1.0-0 libpackagekit-glib2-18 libpolkit-agent-1-0
  libpolkit-gobject-1-0 libstemmer0d libunwind8 libyaml-0-2 packagekit packagekit-tools policykit-1 python3-gi
  python3-software-properties
Suggested packages:
  isoquery gstreamer1.0-tools appstream
The following NEW packages will be installed:
  gir1.2-glib-2.0 gir1.2-packagekitglib-1.0 iso-codes libappstream4 libdw1 libgirepository-1.0-1
  libglib2.0-bin libglib2.0-data libgstreamer1.0-0 libpackagekit-glib2-18 libpolkit-agent-1-0
  libpolkit-gobject-1-0 libstemmer0d libunwind8 libyaml-0-2 packagekit packagekit-tools policykit-1 python3-gi
  python3-software-properties software-properties-common
0 upgraded, 21 newly installed, 0 to remove and 24 not upgraded.
Need to get 8590 kB of archives.
After this operation, 44.6 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 https://deb.debian.org/debian bullseye/main amd64 libgirepository-1.0-1 amd64 1.66.1-1+b1 [96.7 kB]
Get:2 https://deb.debian.org/debian bullseye/main amd64 gir1.2-glib-2.0 amd64 1.66.1-1+b1 [151 kB]
Get:3 https://deb.debian.org/debian bullseye/main amd64 libpackagekit-glib2-18 amd64 1.2.2-2 [124 kB]
Get:4 https://deb.debian.org/debian bullseye/main amd64 gir1.2-packagekitglib-1.0 amd64 1.2.2-2 [36.8 kB]
Get:5 https://deb.debian.org/debian bullseye/main amd64 iso-codes all 4.6.0-1 [2824 kB]
Get:6 https://deb.debian.org/debian bullseye/main amd64 libstemmer0d amd64 2.1.0-1 [119 kB]
Get:7 https://deb.debian.org/debian bullseye/main amd64 libyaml-0-2 amd64 0.2.2-1 [49.6 kB]
Get:8 https://deb.debian.org/debian bullseye/main amd64 libappstream4 amd64 0.14.4-1 [172 kB]
Get:9 https://deb.debian.org/debian bullseye/main amd64 libdw1 amd64 0.183-1 [234 kB]
Get:10 https://deb.debian.org/debian bullseye/main amd64 libglib2.0-data all 2.66.8-1+deb11u4 [1178 kB]
Get:11 https://deb.debian.org/debian bullseye/main amd64 libglib2.0-bin amd64 2.66.8-1+deb11u4 [142 kB]
Get:12 https://deb.debian.org/debian bullseye/main amd64 libunwind8 amd64 1.3.2-2 [54.5 kB]
Get:13 https://deb.debian.org/debian bullseye/main amd64 libgstreamer1.0-0 amd64 1.18.4-2.1 [2230 kB]
Get:14 https://deb.debian.org/debian bullseye/main amd64 libpolkit-gobject-1-0 amd64 0.105-31+deb11u1 [48.5 kB]
Get:15 https://deb.debian.org/debian bullseye/main amd64 libpolkit-agent-1-0 amd64 0.105-31+deb11u1 [28.1 kB]
Get:16 https://deb.debian.org/debian bullseye/main amd64 policykit-1 amd64 0.105-31+deb11u1 [96.7 kB]
Get:17 https://deb.debian.org/debian bullseye/main amd64 packagekit amd64 1.2.2-2 [598 kB]
Get:18 https://deb.debian.org/debian bullseye/main amd64 packagekit-tools amd64 1.2.2-2 [41.7 kB]
Get:19 https://deb.debian.org/debian bullseye/main amd64 python3-gi amd64 3.38.0-2 [232 kB]
Get:20 https://deb.debian.org/debian bullseye/main amd64 python3-software-properties all 0.96.20.2-2.1 [49.7 kB]
Get:21 https://deb.debian.org/debian bullseye/main amd64 software-properties-common all 0.96.20.2-2.1 [83.4 kB]
Fetched 8590 kB in 1s (9666 kB/s)
Selecting previously unselected package libgirepository-1.0-1:amd64.
(Reading database ... 25141 files and directories currently installed.)
Preparing to unpack .../00-libgirepository-1.0-1_1.66.1-1+b1_amd64.deb ...
Unpacking libgirepository-1.0-1:amd64 (1.66.1-1+b1) ...
Selecting previously unselected package gir1.2-glib-2.0:amd64.
Preparing to unpack .../01-gir1.2-glib-2.0_1.66.1-1+b1_amd64.deb ...
Unpacking gir1.2-glib-2.0:amd64 (1.66.1-1+b1) ...
Selecting previously unselected package libpackagekit-glib2-18:amd64.
Preparing to unpack .../02-libpackagekit-glib2-18_1.2.2-2_amd64.deb ...
Unpacking libpackagekit-glib2-18:amd64 (1.2.2-2) ...
Selecting previously unselected package gir1.2-packagekitglib-1.0.
Preparing to unpack .../03-gir1.2-packagekitglib-1.0_1.2.2-2_amd64.deb ...
Unpacking gir1.2-packagekitglib-1.0 (1.2.2-2) ...
Selecting previously unselected package iso-codes.
Preparing to unpack .../04-iso-codes_4.6.0-1_all.deb ...
Unpacking iso-codes (4.6.0-1) ...
Selecting previously unselected package libstemmer0d:amd64.
Preparing to unpack .../05-libstemmer0d_2.1.0-1_amd64.deb ...
Unpacking libstemmer0d:amd64 (2.1.0-1) ...
Selecting previously unselected package libyaml-0-2:amd64.
Preparing to unpack .../06-libyaml-0-2_0.2.2-1_amd64.deb ...
Unpacking libyaml-0-2:amd64 (0.2.2-1) ...
Selecting previously unselected package libappstream4:amd64.
Preparing to unpack .../07-libappstream4_0.14.4-1_amd64.deb ...
Unpacking libappstream4:amd64 (0.14.4-1) ...
Selecting previously unselected package libdw1:amd64.
Preparing to unpack .../08-libdw1_0.183-1_amd64.deb ...
Unpacking libdw1:amd64 (0.183-1) ...
Selecting previously unselected package libglib2.0-data.
Preparing to unpack .../09-libglib2.0-data_2.66.8-1+deb11u4_all.deb ...
Unpacking libglib2.0-data (2.66.8-1+deb11u4) ...
Selecting previously unselected package libglib2.0-bin.
Preparing to unpack .../10-libglib2.0-bin_2.66.8-1+deb11u4_amd64.deb ...
Unpacking libglib2.0-bin (2.66.8-1+deb11u4) ...
Selecting previously unselected package libunwind8:amd64.
Preparing to unpack .../11-libunwind8_1.3.2-2_amd64.deb ...
Unpacking libunwind8:amd64 (1.3.2-2) ...
Selecting previously unselected package libgstreamer1.0-0:amd64.
Preparing to unpack .../12-libgstreamer1.0-0_1.18.4-2.1_amd64.deb ...
Unpacking libgstreamer1.0-0:amd64 (1.18.4-2.1) ...
Selecting previously unselected package libpolkit-gobject-1-0:amd64.
Preparing to unpack .../13-libpolkit-gobject-1-0_0.105-31+deb11u1_amd64.deb ...
Unpacking libpolkit-gobject-1-0:amd64 (0.105-31+deb11u1) ...
Selecting previously unselected package libpolkit-agent-1-0:amd64.
Preparing to unpack .../14-libpolkit-agent-1-0_0.105-31+deb11u1_amd64.deb ...
Unpacking libpolkit-agent-1-0:amd64 (0.105-31+deb11u1) ...
Selecting previously unselected package policykit-1.
Preparing to unpack .../15-policykit-1_0.105-31+deb11u1_amd64.deb ...
Unpacking policykit-1 (0.105-31+deb11u1) ...
Selecting previously unselected package packagekit.
Preparing to unpack .../16-packagekit_1.2.2-2_amd64.deb ...
Unpacking packagekit (1.2.2-2) ...
Selecting previously unselected package packagekit-tools.
Preparing to unpack .../17-packagekit-tools_1.2.2-2_amd64.deb ...
Unpacking packagekit-tools (1.2.2-2) ...
Selecting previously unselected package python3-gi.
Preparing to unpack .../18-python3-gi_3.38.0-2_amd64.deb ...
Unpacking python3-gi (3.38.0-2) ...
Selecting previously unselected package python3-software-properties.
Preparing to unpack .../19-python3-software-properties_0.96.20.2-2.1_all.deb ...
Unpacking python3-software-properties (0.96.20.2-2.1) ...
Selecting previously unselected package software-properties-common.
Preparing to unpack .../20-software-properties-common_0.96.20.2-2.1_all.deb ...
Unpacking software-properties-common (0.96.20.2-2.1) ...
Setting up libdw1:amd64 (0.183-1) ...
Setting up libyaml-0-2:amd64 (0.2.2-1) ...
Setting up libpackagekit-glib2-18:amd64 (1.2.2-2) ...
Setting up libunwind8:amd64 (1.3.2-2) ...
Setting up libglib2.0-data (2.66.8-1+deb11u4) ...
Setting up libgirepository-1.0-1:amd64 (1.66.1-1+b1) ...
Setting up libstemmer0d:amd64 (2.1.0-1) ...
Setting up iso-codes (4.6.0-1) ...
Setting up libpolkit-gobject-1-0:amd64 (0.105-31+deb11u1) ...
Setting up libgstreamer1.0-0:amd64 (1.18.4-2.1) ...
Setcap worked! gst-ptp-helper is not suid!
Setting up libglib2.0-bin (2.66.8-1+deb11u4) ...
Setting up libappstream4:amd64 (0.14.4-1) ...
Setting up python3-software-properties (0.96.20.2-2.1) ...
Setting up gir1.2-glib-2.0:amd64 (1.66.1-1+b1) ...
Setting up libpolkit-agent-1-0:amd64 (0.105-31+deb11u1) ...
Setting up policykit-1 (0.105-31+deb11u1) ...
Setting up gir1.2-packagekitglib-1.0 (1.2.2-2) ...
Setting up python3-gi (3.38.0-2) ...
Setting up packagekit (1.2.2-2) ...
Created symlink /etc/systemd/user/sockets.target.wants/pk-debconf-helper.socket → /usr/lib/systemd/user/pk-debconf-helper.socket.
Setting up packagekit-tools (1.2.2-2) ...
Setting up software-properties-common (0.96.20.2-2.1) ...
Processing triggers for libc-bin (2.31-13+deb11u11) ...
Processing triggers for man-db (2.9.4-2) ...
Processing triggers for dbus (1.12.28-0+deb11u1) ...
root@master:~# echo "deb http://ppa.launchpad.net/ansible/ansible/ubuntu focal main" | sudo tee -a /etc/apt/sources.list.d/ansible-debian.list
deb http://ppa.launchpad.net/ansible/ansible/ubuntu focal main
root@master:~# apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 93C4A3FD7BB9C367
E: gnupg, gnupg2 and gnupg1 do not seem to be installed, but one of them is required for this operation

After this I performed the same test but adding gnupg to the dependencies to install and even with the Trusty repository I have not had installation problems:

root@master:~# cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
root@master:~# apt-get update
Hit:1 https://security.debian.org/debian-security bullseye-security InRelease
Hit:2 https://deb.debian.org/debian bullseye InRelease
Hit:3 https://deb.debian.org/debian bullseye-updates InRelease
Hit:4 https://deb.debian.org/debian bullseye-backports InRelease
Reading package lists... Done
root@master:~# apt-get install lsb-release software-properties-common gnupg
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
lsb-release is already the newest version (11.1.0).
software-properties-common is already the newest version (0.96.20.2-2.1).
The following additional packages will be installed:
  dirmngr gnupg-l10n gnupg-utils gpg gpg-agent gpg-wks-client gpg-wks-server gpgconf gpgsm libassuan0 libksba8
  libnpth0 pinentry-curses
Suggested packages:
  dbus-user-session pinentry-gnome3 tor parcimonie xloadimage scdaemon pinentry-doc
The following NEW packages will be installed:
  dirmngr gnupg gnupg-l10n gnupg-utils gpg gpg-agent gpg-wks-client gpg-wks-server gpgconf gpgsm libassuan0
  libksba8 libnpth0 pinentry-curses
0 upgraded, 14 newly installed, 0 to remove and 24 not upgraded.
Need to get 7665 kB of archives.
After this operation, 15.7 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 https://deb.debian.org/debian bullseye/main amd64 libassuan0 amd64 2.5.3-7.1 [50.5 kB]
Get:2 https://deb.debian.org/debian bullseye/main amd64 gpgconf amd64 2.2.27-2+deb11u2 [548 kB]
Get:3 https://deb.debian.org/debian bullseye/main amd64 libksba8 amd64 1.5.0-3+deb11u2 [123 kB]
Get:4 https://deb.debian.org/debian bullseye/main amd64 libnpth0 amd64 1.6-3 [19.0 kB]
Get:5 https://deb.debian.org/debian bullseye/main amd64 dirmngr amd64 2.2.27-2+deb11u2 [763 kB]
Get:6 https://deb.debian.org/debian bullseye/main amd64 gnupg-l10n all 2.2.27-2+deb11u2 [1086 kB]
Get:7 https://deb.debian.org/debian bullseye/main amd64 gnupg-utils amd64 2.2.27-2+deb11u2 [905 kB]
Get:8 https://deb.debian.org/debian bullseye/main amd64 gpg amd64 2.2.27-2+deb11u2 [928 kB]
Get:9 https://deb.debian.org/debian bullseye/main amd64 pinentry-curses amd64 1.1.0-4 [64.9 kB]
Get:10 https://deb.debian.org/debian bullseye/main amd64 gpg-agent amd64 2.2.27-2+deb11u2 [669 kB]
Get:11 https://deb.debian.org/debian bullseye/main amd64 gpg-wks-client amd64 2.2.27-2+deb11u2 [524 kB]
Get:12 https://deb.debian.org/debian bullseye/main amd64 gpg-wks-server amd64 2.2.27-2+deb11u2 [516 kB]
Get:13 https://deb.debian.org/debian bullseye/main amd64 gpgsm amd64 2.2.27-2+deb11u2 [645 kB]
Get:14 https://deb.debian.org/debian bullseye/main amd64 gnupg all 2.2.27-2+deb11u2 [825 kB]
Fetched 7665 kB in 1s (7026 kB/s)
Selecting previously unselected package libassuan0:amd64.
(Reading database ... 26968 files and directories currently installed.)
Preparing to unpack .../00-libassuan0_2.5.3-7.1_amd64.deb ...
Unpacking libassuan0:amd64 (2.5.3-7.1) ...
Selecting previously unselected package gpgconf.
Preparing to unpack .../01-gpgconf_2.2.27-2+deb11u2_amd64.deb ...
Unpacking gpgconf (2.2.27-2+deb11u2) ...
Selecting previously unselected package libksba8:amd64.
Preparing to unpack .../02-libksba8_1.5.0-3+deb11u2_amd64.deb ...
Unpacking libksba8:amd64 (1.5.0-3+deb11u2) ...
Selecting previously unselected package libnpth0:amd64.
Preparing to unpack .../03-libnpth0_1.6-3_amd64.deb ...
Unpacking libnpth0:amd64 (1.6-3) ...
Selecting previously unselected package dirmngr.
Preparing to unpack .../04-dirmngr_2.2.27-2+deb11u2_amd64.deb ...
Unpacking dirmngr (2.2.27-2+deb11u2) ...
Selecting previously unselected package gnupg-l10n.
Preparing to unpack .../05-gnupg-l10n_2.2.27-2+deb11u2_all.deb ...
Unpacking gnupg-l10n (2.2.27-2+deb11u2) ...
Selecting previously unselected package gnupg-utils.
Preparing to unpack .../06-gnupg-utils_2.2.27-2+deb11u2_amd64.deb ...
Unpacking gnupg-utils (2.2.27-2+deb11u2) ...
Selecting previously unselected package gpg.
Preparing to unpack .../07-gpg_2.2.27-2+deb11u2_amd64.deb ...
Unpacking gpg (2.2.27-2+deb11u2) ...
Selecting previously unselected package pinentry-curses.
Preparing to unpack .../08-pinentry-curses_1.1.0-4_amd64.deb ...
Unpacking pinentry-curses (1.1.0-4) ...
Selecting previously unselected package gpg-agent.
Preparing to unpack .../09-gpg-agent_2.2.27-2+deb11u2_amd64.deb ...
Unpacking gpg-agent (2.2.27-2+deb11u2) ...
Selecting previously unselected package gpg-wks-client.
Preparing to unpack .../10-gpg-wks-client_2.2.27-2+deb11u2_amd64.deb ...
Unpacking gpg-wks-client (2.2.27-2+deb11u2) ...
Selecting previously unselected package gpg-wks-server.
Preparing to unpack .../11-gpg-wks-server_2.2.27-2+deb11u2_amd64.deb ...
Unpacking gpg-wks-server (2.2.27-2+deb11u2) ...
Selecting previously unselected package gpgsm.
Preparing to unpack .../12-gpgsm_2.2.27-2+deb11u2_amd64.deb ...
Unpacking gpgsm (2.2.27-2+deb11u2) ...
Selecting previously unselected package gnupg.
Preparing to unpack .../13-gnupg_2.2.27-2+deb11u2_all.deb ...
Unpacking gnupg (2.2.27-2+deb11u2) ...
Setting up libksba8:amd64 (1.5.0-3+deb11u2) ...
Setting up libnpth0:amd64 (1.6-3) ...
Setting up libassuan0:amd64 (2.5.3-7.1) ...
Setting up gnupg-l10n (2.2.27-2+deb11u2) ...
Setting up gpgconf (2.2.27-2+deb11u2) ...
Setting up gpg (2.2.27-2+deb11u2) ...
Setting up gnupg-utils (2.2.27-2+deb11u2) ...
Setting up pinentry-curses (1.1.0-4) ...
Setting up gpg-agent (2.2.27-2+deb11u2) ...
Created symlink /etc/systemd/user/sockets.target.wants/gpg-agent-browser.socket → /usr/lib/systemd/user/gpg-agent-browser.socket.
Created symlink /etc/systemd/user/sockets.target.wants/gpg-agent-extra.socket → /usr/lib/systemd/user/gpg-agent-extra.socket.
Created symlink /etc/systemd/user/sockets.target.wants/gpg-agent-ssh.socket → /usr/lib/systemd/user/gpg-agent-ssh.socket.
Created symlink /etc/systemd/user/sockets.target.wants/gpg-agent.socket → /usr/lib/systemd/user/gpg-agent.socket.
Setting up gpgsm (2.2.27-2+deb11u2) ...
Setting up dirmngr (2.2.27-2+deb11u2) ...
Created symlink /etc/systemd/user/sockets.target.wants/dirmngr.socket → /usr/lib/systemd/user/dirmngr.socket.
Setting up gpg-wks-server (2.2.27-2+deb11u2) ...
Setting up gpg-wks-client (2.2.27-2+deb11u2) ...
Setting up gnupg (2.2.27-2+deb11u2) ...
Processing triggers for man-db (2.9.4-2) ...
Processing triggers for libc-bin (2.31-13+deb11u11) ...
root@master:~# echo "deb http://ppa.launchpad.net/ansible/ansible/ubuntu trusty main" | sudo tee -a /etc/apt/sou
rces.list.d/ansible-debian.list
deb http://ppa.launchpad.net/ansible/ansible/ubuntu trusty main
root@master:~# apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 93C4A3FD7BB9C367
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
Executing: /tmp/apt-key-gpghome.idtr7vlqKf/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys 93C4A3FD7BB9C367
gpg: key 93C4A3FD7BB9C367: public key "Launchpad PPA for Ansible, Inc." imported
gpg: Total number processed: 1
gpg:               imported: 1
root@master:~# apt-get update
Hit:1 https://security.debian.org/debian-security bullseye-security InRelease
Hit:2 https://deb.debian.org/debian bullseye InRelease
Hit:3 https://deb.debian.org/debian bullseye-updates InRelease
Hit:4 https://deb.debian.org/debian bullseye-backports InRelease
Get:5 http://ppa.launchpad.net/ansible/ansible/ubuntu trusty InRelease [16.0 kB]
Get:6 http://ppa.launchpad.net/ansible/ansible/ubuntu trusty/main amd64 Packages [717 B]
Get:7 http://ppa.launchpad.net/ansible/ansible/ubuntu trusty/main Translation-en [492 B]
Fetched 17.2 kB in 1s (14.3 kB/s)
Reading package lists... Done
root@master:~# apt-get install ansible
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  ieee-data python3-argcomplete python3-cffi-backend python3-cryptography python3-distutils python3-dnspython
  python3-jinja2 python3-jmespath python3-kerberos python3-lib2to3 python3-libcloud python3-lockfile
  python3-markupsafe python3-netaddr python3-ntlm-auth python3-packaging python3-pycryptodome
  python3-pyparsing python3-requests-kerberos python3-requests-ntlm python3-requests-toolbelt python3-selinux
  python3-simplejson python3-winrm python3-xmltodict python3-yaml
Suggested packages:
  cowsay sshpass python-cryptography-doc python3-cryptography-vectors python3-sniffio python3-trio
  python-jinja2-doc python-lockfile-doc ipython3 python-netaddr-docs python-pyparsing-doc
The following NEW packages will be installed:
  ansible ieee-data python3-argcomplete python3-cffi-backend python3-cryptography python3-distutils
  python3-dnspython python3-jinja2 python3-jmespath python3-kerberos python3-lib2to3 python3-libcloud
  python3-lockfile python3-markupsafe python3-netaddr python3-ntlm-auth python3-packaging python3-pycryptodome
  python3-pyparsing python3-requests-kerberos python3-requests-ntlm python3-requests-toolbelt python3-selinux
  python3-simplejson python3-winrm python3-xmltodict python3-yaml
0 upgraded, 27 newly installed, 0 to remove and 24 not upgraded.
Need to get 32.8 MB of archives.
After this operation, 280 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 https://security.debian.org/debian-security bullseye-security/main amd64 python3-cryptography amd64 3.3.2-1+deb11u1 [222 kB]
Get:2 https://deb.debian.org/debian bullseye/main amd64 python3-cffi-backend amd64 1.14.5-1 [85.8 kB]
Get:3 https://deb.debian.org/debian bullseye/main amd64 python3-markupsafe amd64 1.1.1-1+b3 [15.2 kB]
Get:4 https://deb.debian.org/debian bullseye/main amd64 python3-jinja2 all 2.11.3-1 [114 kB]
Get:5 https://deb.debian.org/debian bullseye/main amd64 python3-pyparsing all 2.4.7-1 [109 kB]
Get:6 https://deb.debian.org/debian bullseye/main amd64 python3-packaging all 20.9-2 [33.5 kB]
Get:7 https://deb.debian.org/debian bullseye/main amd64 python3-yaml amd64 5.3.1-5 [138 kB]
Get:8 https://deb.debian.org/debian bullseye/main amd64 python3-pycryptodome amd64 3.9.7+dfsg1-1+b2 [9910 kB]
Get:9 https://deb.debian.org/debian bullseye/main amd64 python3-lib2to3 all 3.9.2-1 [77.8 kB]
Get:10 https://deb.debian.org/debian bullseye/main amd64 python3-distutils all 3.9.2-1 [143 kB]
Get:11 https://deb.debian.org/debian bullseye/main amd64 python3-dnspython all 2.0.0-1 [103 kB]
Get:12 https://deb.debian.org/debian bullseye/main amd64 ieee-data all 20210605.1 [1889 kB]
Get:13 https://deb.debian.org/debian bullseye/main amd64 python3-netaddr all 0.7.19-5 [253 kB]
Get:14 https://deb.debian.org/debian bullseye/main amd64 ansible all 2.10.7+merged+base+2.10.17+dfsg-0+deb11u1 [17.7 MB]
Get:15 https://deb.debian.org/debian bullseye/main amd64 python3-argcomplete all 1.8.1-1.5 [29.7 kB]
Get:16 https://deb.debian.org/debian bullseye/main amd64 python3-jmespath all 0.10.0-1 [21.7 kB]
Get:17 https://deb.debian.org/debian bullseye/main amd64 python3-kerberos amd64 1.1.14-3.1+b3 [24.1 kB]
Get:18 https://deb.debian.org/debian bullseye/main amd64 python3-lockfile all 1:0.12.2-2.2 [17.3 kB]
Get:19 https://deb.debian.org/debian bullseye/main amd64 python3-simplejson amd64 3.17.2-1 [61.7 kB]
Get:20 https://deb.debian.org/debian bullseye/main amd64 python3-libcloud all 3.2.0-2 [1615 kB]
Get:21 https://deb.debian.org/debian bullseye/main amd64 python3-ntlm-auth all 1.4.0-1 [21.6 kB]
Get:22 https://deb.debian.org/debian bullseye/main amd64 python3-requests-kerberos all 0.12.0-2 [13.0 kB]
Get:23 https://deb.debian.org/debian bullseye/main amd64 python3-requests-ntlm all 1.1.0-1.1 [6120 B]
Get:24 https://deb.debian.org/debian bullseye/main amd64 python3-requests-toolbelt all 0.9.1-1 [41.7 kB]
Get:25 https://deb.debian.org/debian bullseye/main amd64 python3-selinux amd64 3.1-3 [160 kB]
Get:26 https://deb.debian.org/debian bullseye/main amd64 python3-xmltodict all 0.12.0-2 [15.2 kB]
Get:27 https://deb.debian.org/debian bullseye/main amd64 python3-winrm all 0.3.0-2 [21.6 kB]
Fetched 32.8 MB in 8s (4327 kB/s)
Selecting previously unselected package python3-cffi-backend:amd64.
(Reading database ... 27220 files and directories currently installed.)
Preparing to unpack .../00-python3-cffi-backend_1.14.5-1_amd64.deb ...
Unpacking python3-cffi-backend:amd64 (1.14.5-1) ...
Selecting previously unselected package python3-cryptography.
Preparing to unpack .../01-python3-cryptography_3.3.2-1+deb11u1_amd64.deb ...
Unpacking python3-cryptography (3.3.2-1+deb11u1) ...
Selecting previously unselected package python3-markupsafe.
Preparing to unpack .../02-python3-markupsafe_1.1.1-1+b3_amd64.deb ...
Unpacking python3-markupsafe (1.1.1-1+b3) ...
Selecting previously unselected package python3-jinja2.
Preparing to unpack .../03-python3-jinja2_2.11.3-1_all.deb ...
Unpacking python3-jinja2 (2.11.3-1) ...
Selecting previously unselected package python3-pyparsing.
Preparing to unpack .../04-python3-pyparsing_2.4.7-1_all.deb ...
Unpacking python3-pyparsing (2.4.7-1) ...
Selecting previously unselected package python3-packaging.
Preparing to unpack .../05-python3-packaging_20.9-2_all.deb ...
Unpacking python3-packaging (20.9-2) ...
Selecting previously unselected package python3-yaml.
Preparing to unpack .../06-python3-yaml_5.3.1-5_amd64.deb ...
Unpacking python3-yaml (5.3.1-5) ...
Selecting previously unselected package python3-pycryptodome.
Preparing to unpack .../07-python3-pycryptodome_3.9.7+dfsg1-1+b2_amd64.deb ...
Unpacking python3-pycryptodome (3.9.7+dfsg1-1+b2) ...
Selecting previously unselected package python3-lib2to3.
Preparing to unpack .../08-python3-lib2to3_3.9.2-1_all.deb ...
Unpacking python3-lib2to3 (3.9.2-1) ...
Selecting previously unselected package python3-distutils.
Preparing to unpack .../09-python3-distutils_3.9.2-1_all.deb ...
Unpacking python3-distutils (3.9.2-1) ...
Selecting previously unselected package python3-dnspython.
Preparing to unpack .../10-python3-dnspython_2.0.0-1_all.deb ...
Unpacking python3-dnspython (2.0.0-1) ...
Selecting previously unselected package ieee-data.
Preparing to unpack .../11-ieee-data_20210605.1_all.deb ...
Unpacking ieee-data (20210605.1) ...
Selecting previously unselected package python3-netaddr.
Preparing to unpack .../12-python3-netaddr_0.7.19-5_all.deb ...
Unpacking python3-netaddr (0.7.19-5) ...
Selecting previously unselected package ansible.
Preparing to unpack .../13-ansible_2.10.7+merged+base+2.10.17+dfsg-0+deb11u1_all.deb ...
Unpacking ansible (2.10.7+merged+base+2.10.17+dfsg-0+deb11u1) ...
Selecting previously unselected package python3-argcomplete.
Preparing to unpack .../14-python3-argcomplete_1.8.1-1.5_all.deb ...
Unpacking python3-argcomplete (1.8.1-1.5) ...
Selecting previously unselected package python3-jmespath.
Preparing to unpack .../15-python3-jmespath_0.10.0-1_all.deb ...
Unpacking python3-jmespath (0.10.0-1) ...
Selecting previously unselected package python3-kerberos.
Preparing to unpack .../16-python3-kerberos_1.1.14-3.1+b3_amd64.deb ...
Unpacking python3-kerberos (1.1.14-3.1+b3) ...
Selecting previously unselected package python3-lockfile.
Preparing to unpack .../17-python3-lockfile_1%3a0.12.2-2.2_all.deb ...
Unpacking python3-lockfile (1:0.12.2-2.2) ...
Selecting previously unselected package python3-simplejson.
Preparing to unpack .../18-python3-simplejson_3.17.2-1_amd64.deb ...
Unpacking python3-simplejson (3.17.2-1) ...
Selecting previously unselected package python3-libcloud.
Preparing to unpack .../19-python3-libcloud_3.2.0-2_all.deb ...
Unpacking python3-libcloud (3.2.0-2) ...
Selecting previously unselected package python3-ntlm-auth.
Preparing to unpack .../20-python3-ntlm-auth_1.4.0-1_all.deb ...
Unpacking python3-ntlm-auth (1.4.0-1) ...
Selecting previously unselected package python3-requests-kerberos.
Preparing to unpack .../21-python3-requests-kerberos_0.12.0-2_all.deb ...
Unpacking python3-requests-kerberos (0.12.0-2) ...
Selecting previously unselected package python3-requests-ntlm.
Preparing to unpack .../22-python3-requests-ntlm_1.1.0-1.1_all.deb ...
Unpacking python3-requests-ntlm (1.1.0-1.1) ...
Selecting previously unselected package python3-requests-toolbelt.
Preparing to unpack .../23-python3-requests-toolbelt_0.9.1-1_all.deb ...
Unpacking python3-requests-toolbelt (0.9.1-1) ...
Selecting previously unselected package python3-selinux.
Preparing to unpack .../24-python3-selinux_3.1-3_amd64.deb ...
Unpacking python3-selinux (3.1-3) ...
Selecting previously unselected package python3-xmltodict.
Preparing to unpack .../25-python3-xmltodict_0.12.0-2_all.deb ...
Unpacking python3-xmltodict (0.12.0-2) ...
Selecting previously unselected package python3-winrm.
Preparing to unpack .../26-python3-winrm_0.3.0-2_all.deb ...
Unpacking python3-winrm (0.3.0-2) ...
Setting up python3-lockfile (1:0.12.2-2.2) ...
Setting up python3-requests-toolbelt (0.9.1-1) ...
Setting up python3-ntlm-auth (1.4.0-1) ...
Setting up python3-pycryptodome (3.9.7+dfsg1-1+b2) ...
Setting up python3-kerberos (1.1.14-3.1+b3) ...
Setting up python3-yaml (5.3.1-5) ...
Setting up python3-markupsafe (1.1.1-1+b3) ...
Setting up python3-simplejson (3.17.2-1) ...
Setting up python3-xmltodict (0.12.0-2) ...
Setting up python3-jinja2 (2.11.3-1) ...
Setting up python3-pyparsing (2.4.7-1) ...
Setting up python3-jmespath (0.10.0-1) ...
Setting up ieee-data (20210605.1) ...
Setting up python3-dnspython (2.0.0-1) ...
Setting up python3-selinux (3.1-3) ...
Setting up python3-argcomplete (1.8.1-1.5) ...
Setting up python3-lib2to3 (3.9.2-1) ...
Setting up python3-cffi-backend:amd64 (1.14.5-1) ...
Setting up python3-distutils (3.9.2-1) ...
Setting up python3-packaging (20.9-2) ...
Setting up python3-cryptography (3.3.2-1+deb11u1) ...
Setting up python3-requests-kerberos (0.12.0-2) ...
Setting up python3-netaddr (0.7.19-5) ...
Setting up ansible (2.10.7+merged+base+2.10.17+dfsg-0+deb11u1) ...
Setting up python3-requests-ntlm (1.1.0-1.1) ...
Setting up python3-libcloud (3.2.0-2) ...
Setting up python3-winrm (0.3.0-2) ...
Processing triggers for man-db (2.9.4-2) ...