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/09/10 15:36] – Jean-Baptiste | tech:ansible_collection [2025/11/13 12:02] (Version actuelle) – Jean-Baptiste | ||
|---|---|---|---|
| Ligne 7: | Ligne 7: | ||
| * https:// | * https:// | ||
| * https:// | * https:// | ||
| + | * https:// | ||
| + | * https:// | ||
| + | * https:// | ||
| + | |||
| + | |||
| + | Dépendances : | ||
| + | * https:// | ||
| + | * https:// | ||
| + | * https:// | ||
| + | * https:// | ||
| + | * https:// | ||
| + | * https:// | ||
| + | |||
| + | |||
| Ligne 26: | Ligne 40: | ||
| collections: | collections: | ||
| - name: https:// | - name: https:// | ||
| - | type: git | + | |
| + | scm: git | ||
| version: master | version: master | ||
| </ | </ | ||
| Ligne 80: | Ligne 95: | ||
| == Utiliser une collection distante | == Utiliser une collection distante | ||
| - | + | '' | |
| - | <code yaml collections/ | + | <code yaml> |
| --- | --- | ||
| collections: | collections: | ||
| Ligne 96: | Ligne 111: | ||
| </ | </ | ||
| - | <code yaml play.yml> | + | '' |
| + | <code yaml> | ||
| # | # | ||
| --- | --- | ||
| Ligne 121: | 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 141: | Ligne 173: | ||
| - | <code yaml galaxy.yml> | + | '' |
| + | <code yaml> | ||
| --- | --- | ||
| Ligne 155: | Ligne 188: | ||
| </ | </ | ||
| - | <code yaml tasks/ | + | |
| + | '' | ||
| + | <code yaml> | ||
| - name: Enable local cache DNS | - name: Enable local cache DNS | ||
| Ligne 204: | 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 | ||
tech/ansible_collection.1757511366.txt.gz · Dernière modification : de Jean-Baptiste
