Outils pour utilisateurs

Outils du site


anthony_messe:ansible:installation_et_configuration

Ceci est une ancienne révision du document !


Installation et configuration d'Ansible

Installation

Ansible est un outil open-source de gestion de configuration écrit en python. La configuration se fait via des fichiers appelés “Playbooks”.

apt-get install ansible

Configuration des hosts d'Ansible

On édite le fichier de configuration correspondant

nano /etc/ansible/hosts

Et on ajoute les hosts voulus. On peut créer des catégories / groupes comme [bpi] dans lesquelles on peut mettre plusieurs hosts.

# This is the default ansible 'hosts' file.
#
# It should live in /etc/ansible/hosts
#
#   - Comments begin with the '#' character
#   - Blank lines are ignored
#   - Groups of hosts are delimited by [header] elements
#   - You can enter hostnames or ip addresses
#   - A hostname/ip can be a member of multiple groups

[bpi]
192.168.16.20

Ressources

anthony_messe/ansible/installation_et_configuration.1525685516.txt.gz · Dernière modification: 2018/05/07 11:31 par Anthony Messé