Featured image of post How to Install Ansible on Debian 11

How to Install Ansible on Debian 11

Install ansible on debian11

Install ansible with apt

1
2
3
4
5
6
7
8
9
cat << EOF > /etc/apt/sources.list.d/ansible.list
deb http://ppa.launchpad.net/ansible/ansible/ubuntu focal main
EOF


sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 93C4A3FD7BB9C367
apt update 
apt install ansible -y
ansible --version

Install ansible using pip

1
2
apt-get install python3 python3-pip -y
pip install ansible

Reference

Built with Hugo
Theme Stack designed by Jimmy