tech:ansible_collection
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| tech:ansible_collection [2025/10/16 09:20] – Jean-Baptiste | tech:ansible_collection [2025/11/13 12:02] (Version actuelle) – Jean-Baptiste | ||
|---|---|---|---|
| Ligne 40: | Ligne 40: | ||
| collections: | collections: | ||
| - name: https:// | - name: https:// | ||
| - | type: git | + | |
| + | scm: git | ||
| version: master | version: master | ||
| </ | </ | ||
| Ligne 94: | Ligne 95: | ||
| == Utiliser une collection distante | == Utiliser une collection distante | ||
| - | + | '' | |
| - | <code yaml collections/ | + | <code yaml> |
| --- | --- | ||
| collections: | collections: | ||
| Ligne 110: | Ligne 111: | ||
| </ | </ | ||
| - | <code yaml play.yml> | + | '' |
| + | <code yaml> | ||
| # | # | ||
| --- | --- | ||
| Ligne 135: | Ligne 137: | ||
| ansible-doc acme.awx.tower_credential | ansible-doc acme.awx.tower_credential | ||
| </ | </ | ||
| + | |||
| + | |||
| + | === Exemple de role distant sur Git | ||
| + | |||
| + | '' | ||
| + | <code yaml> | ||
| + | --- | ||
| + | |||
| + | - src: ssh:// | ||
| + | scm: git | ||
| + | version: master | ||
| + | |||
| + | </ | ||
| + | |||
| === Exemple de collection distante sur Git | === Exemple de collection distante sur Git | ||
| - | <code yaml collections/ | + | '' |
| + | <code yaml> | ||
| --- | --- | ||
| collections: | collections: | ||
| - name: https:// | - name: https:// | ||
| - | type: git | + | |
| + | scm: git | ||
| </ | </ | ||
| Ligne 155: | Ligne 173: | ||
| - | <code yaml galaxy.yml> | + | '' |
| + | <code yaml> | ||
| --- | --- | ||
| Ligne 169: | Ligne 188: | ||
| </ | </ | ||
| - | <code yaml tasks/ | + | |
| + | '' | ||
| + | <code yaml> | ||
| - name: Enable local cache DNS | - name: Enable local cache DNS | ||
| Ligne 218: | Ligne 239: | ||
| - | ----------------- | ||
| - | Créer un paquet d'un role | ||
| - | <code bash> | ||
| - | tar czvf ./ | ||
| - | </ | ||
| - | |||
| - | La documentation est dans : | ||
| - | * meta/ | ||
| - | * README.md | ||
| - | |||
| - | Installer un role | ||
| - | <code 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 | ||
| - | |||
| - | |||
| - | ----- | ||
| - | |||
| - | Dépendances | ||
| - | |||
| - | <code yaml> | ||
| - | dependencies: | ||
| - | - { role: common, version: " | ||
| - | - { role: webserver, version: "> | ||
| - | - { role: database, tags: [" | ||
| - | - { role: ' | ||
| - | </ | ||
tech/ansible_collection.1760599217.txt.gz · Dernière modification : de Jean-Baptiste
