ansible install

ansible-install | ansible | ansible-ntp | ansible-rhel

warning

you want v2.15+ for the new-style debian repo 822 to work

debian/ubuntu

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

gpg1 --dearmor < /usr/share/keyrings/ansible-archive-keyring.key > /usr/share/keyrings/ansible-archive-keyring.gpg

lsb_release -cs 2>/dev/null # bookworm goes jammy
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/

resources

https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html#selecting-an-ansible-package-and-version-to-install

https://docs.ansible.com/ansible/latest/installation_guide/installation_distros.html#installing-ansible-on-ubuntu

https://docs.ansible.com/ansible/latest/reference_appendices/release_and_maintenance.html#ansible-changelogs

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


HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | HTML5 | CONTACT
Copyright © 2024 Pierre-Philipp Braun