Outils pour utilisateurs

Outils du site


tech:notes_ansible-galaxy

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Prochaine révision
Révision précédente
tech:notes_ansible-galaxy [2025/11/13 12:06] – créée Jean-Baptistetech:notes_ansible-galaxy [2026/01/27 16:59] (Version actuelle) Jean-Baptiste
Ligne 1: Ligne 1:
 +<!DOCTYPE markdown>
 +{{tag>Brouillon ansible AWX}}
 +
 +# Notes ansible-galaxy
 +
 +Voir :
 +  * [[Ansible collection]]
 +  * [[AWX - ansible-galaxy - need ignore-certs to download roles with ansible-galaxy]]
 +  * [[Ansible Docker Execution Environment]]
 +  * <https://les-enovateurs.com/ansible-galaxy-scripts-existants/>
 +
 +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 ./role_name.tar.gz ./role_name
 +~~~
 +
 +La documentation est dans :
 +* meta/main.yml
 +* README.md
 +
 +
 +Afficher les infos d'un rôle
 +~~~bash
 +ansible-galaxy info geerlingguy.mysql
 +~~~
 +
 +
 +Installer un role
 +~~~bash
 +ansible-galaxy install ./role_name.tar.gz
 +ansible-galaxy install role_name
 +~~~
 +
 +Par défaut dans ''~/.ansible/roles/''
 +
 +
 +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: ">=2.0.0" }
 +  - { role: database, tags: ["database"] }
 +  - { role: 'xcode', when: ansible_os_family == 'Darwin' }
 +~~~
 +
 +
 +FIXME
 +
  

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki