#inventory

6 commande(s) avec le tag #inventory

Commandes partagées par la communauté CodeBox, copiables en un clic.

Affiche un graphe visuel de la hiérarchie de l'inventaire.

bash
ansible-inventory --graph

Affiche tous les hôtes de l'inventaire actif.

bash
ansible all --list-hosts

Affiche les hôtes d'un groupe spécifique.

bash
ansible webservers --list-hosts

Affiche l'inventaire complet en JSON (hôtes et variables).

bash
ansible-inventory --list

Exécute un playbook avec un inventaire personnalisé.

bash
ansible-playbook deploy.yml -i inventaire/production

Utilise un fichier ou dossier d'inventaire personnalisé.

bash
ansible all -i inventaire/production --list-hosts