Aller au contenu
Gestion des configurations

Gestion des configurations

Fondé par Michael DeHaan, Ansible, est devenu le standard de-facto en matière de gestion de configurations.

Documentation

Mise-à-disposition

Ajoutons notre dépendance au logiciel ansible.

~/projet-cloud/ $ yq -i e '.dependencies["ansible.com"]="*"' pkgx.yaml

Ré-activons notre environnement contextuel.
Cela va utiliser les logiciels packer et terraform depuis le cache de pkgx et mettre en cache le logiciel ansible nouvellement référencé.

~/projet-cloud/ $ dev off
env -packer.io -terraform.io^1.6
~/projet-cloud/ $ dev on
 ✓  ~/.pkgx/ansible.com/v2.17.3
env +packer.io +terraform.io^1.6 +ansible.com

La commande ansible est maintenant disponible dans notre environnement.

~/projet-cloud/ $ ansible
usage: ansible [-h] [--version] [-v] [-b] [--become-method BECOME_METHOD] [--become-user BECOME_USER]
               pattern
ansible: error: the following arguments are required: pattern