Direkt zum Hauptinhalt

Installation unter Ubuntu / Mint - mittels PPA

Ansible basiert auf python.

Wir brauchen lediglich python pip installieren.
Damit wird python schon automatisch mit installiert.
Die aktuelleste Version von Ansible befindet sich im python Paketinstallationsmanager (pip)

oder wie hier im PPA

Einige Distributionen bringen auch Ansible mit die einfach über desses Paketmanger installiert werden können
z.b apt install ansible.

Diese sind aber in der Regel veraltet.
Da wir hier die PPA Lösung wählen ist apt install ansible wieder möglich, da die aktuellste version aus dem PPA kommt.

Unsere Installationbefehle

# install packages an ansible machine
sudo apt install python3-pip
pip install -U Jinja2
sudo apt update
sudo apt install software-properties-common
sudo apt-add-repository --yes --update ppa:ansible/ansible
sudo apt install ansible

Das wars ansible ist einstazbereit

Durch den Befehl 

ansible --version

sehen wir die version.
Ausgabe:

ansible [core 2.14.0]
  config file = None
  configured module search path = ['/home/duffy/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /home/duffy/.local/lib/python3.10/site-packages/ansible
  ansible collection location = /home/duffy/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/local/bin/ansible
  python version = 3.10.6 (main, Nov  2 2022, 18:53:38) [GCC 11.3.0] (/usr/bin/python3)
  jinja version = 3.1.2
  libyaml = True

Fertig.
Los gehts