tech:notes_ansible-galaxy
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| tech:notes_ansible-galaxy [2025/11/13 12:06] – créée Jean-Baptiste | tech:notes_ansible-galaxy [2026/01/27 16:59] (Version actuelle) – Jean-Baptiste | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| + | < | ||
| + | {{tag> | ||
| + | |||
| + | # Notes ansible-galaxy | ||
| + | |||
| + | Voir : | ||
| + | * [[Ansible collection]] | ||
| + | * [[AWX - ansible-galaxy - need ignore-certs to download roles with ansible-galaxy]] | ||
| + | * [[Ansible Docker Execution Environment]] | ||
| + | * < | ||
| + | |||
| + | Install roles | ||
| + | ~~~bash | ||
| + | ansible-galaxy role install namespace.role_name | ||
| + | ~~~ | ||
| + | |||
| + | List installed roles | ||
| + | ~~~bash | ||
| + | ansible-galaxy role list | ||
| + | ~~~ | ||
| + | |||
| + | Remove an installed role | ||
| + | ~~~bash | ||
| + | ansible-galaxy role remove namespace.role_name | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | Chercher un rôle | ||
| + | ~~~bash | ||
| + | ansible-galaxy search plop | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | Créer un paquet d'un role | ||
| + | ~~~bash | ||
| + | tar czvf ./ | ||
| + | ~~~ | ||
| + | |||
| + | La documentation est dans : | ||
| + | * meta/ | ||
| + | * README.md | ||
| + | |||
| + | |||
| + | Afficher les infos d'un rôle | ||
| + | ~~~bash | ||
| + | ansible-galaxy info geerlingguy.mysql | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | Installer un role | ||
| + | ~~~bash | ||
| + | ansible-galaxy install ./ | ||
| + | ansible-galaxy install role_name | ||
| + | ~~~ | ||
| + | |||
| + | Par défaut dans '' | ||
| + | |||
| + | |||
| + | Voir : | ||
| + | * ansible-galaxy list | ||
| + | * ansible-galaxy search | ||
| + | * ansible-galaxy install | ||
| + | * ansible-galaxy import | ||
| + | * ansible-galaxy info | ||
| + | |||
| + | |||
| + | ## Autres | ||
| + | |||
| + | Dépendances | ||
| + | |||
| + | ~~~yaml | ||
| + | dependencies: | ||
| + | - role: common | ||
| + | - { role: webserver, version: "> | ||
| + | - { role: database, tags: [" | ||
| + | - { role: ' | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | FIXME | ||
| + | |||
