Installation

Angelegt Montag 18 Juni 2018

Installation gemäß https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html
$ sudo apt update
$ sudo apt install software-properties-common
$ sudo apt-add-repository --yes --update ppa:ansible/ansible
$ sudo apt install ansible
$ ansible --version

alias apl=ansible-playbook : Alias setzen

Auf python 3 anpassen:

[myhostgroup:vars]
ansible_python_interpreter=/usr/bin/python3

ansible.cfg anpassen
inventory = hosts : Inventory liegt in hosts (Angabe relativ zu ansible.cgf)
private_key_file = .ssh/id_rsa_my : RSA-Key angeben.
retry_files_save_path = "~/.retry/" : Retries in ein spezielles Direktorie schreiben. Dieses in gitignore aufnehmen



Backlinks:
3 Networked Infrastruktur:Ansible