ansible-install | ansible | ansible-ntp | ansible-rhel
you want v2.15+ for the new-style debian repo 822 to work
you also might prefer 2.16 over 2.17 to remain compatible with python 3.6 targets
go for the official one for ubuntu but also works for debian
keyid=0x6125E2A8C77F2818FB7BD15B93C4A3FD7BB9C367 wget "https://keyserver.ubuntu.com/pks/lookup?fingerprint=on&op=get&search=$keyid" \ -O /usr/share/keyrings/ansible-archive-keyring.key apt install gnupg1 lsb-release gpg1 --dearmor < /usr/share/keyrings/ansible-archive-keyring.key > /usr/share/keyrings/ansible-archive-keyring.gpg # bookworm goes jammy lsb_release -cs 2>/dev/null UBUNTU_CODENAME=jammy
cat > /etc/apt/sources.list.d/ansible.list <<EOF deb [signed-by=/usr/share/keyrings/ansible-archive-keyring.gpg] http://ppa.launchpad.net/ansible/ansible/ubuntu $UBUNTU_CODENAME main EOF
apt update apt show ansible-core | grep ^Version apt install ansible-core ls -lF /etc/ansible/ansible.cfg rmdir /etc/ansible/roles/
https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html
https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-ansible-on-debian-11