tech:ansible_awx_-_tower_cli
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| tech:ansible_awx_-_tower_cli [2025/03/24 15:06] – créée - modification externe 127.0.0.1 | tech:ansible_awx_-_tower_cli [2025/12/03 10:33] (Version actuelle) – Jean-Baptiste | ||
|---|---|---|---|
| Ligne 10: | Ligne 10: | ||
| <code bash> | <code bash> | ||
| pip3 install awxkit | pip3 install awxkit | ||
| + | |||
| + | export AWXKIT_API_BASE_PATH=/ | ||
| + | |||
| awx --help | awx --help | ||
| </ | </ | ||
| Ligne 26: | Ligne 29: | ||
| #awx login --conf.host " | #awx login --conf.host " | ||
| awx login | awx login | ||
| + | awx ping | jq | ||
| </ | </ | ||
| Export | Export | ||
| <code bash> | <code bash> | ||
| - | awx --conf.host $TOWER_HOST --conf.token " | + | # awx --conf.host $TOWER_HOST --conf.token " |
| - | awx --conf.host $TOWER_HOST --conf.token " | + | # awx --conf.host $TOWER_HOST --conf.token " |
| awx export --job_templates 42 | awx export --job_templates 42 | ||
| awx export --job_template " | awx export --job_template " | ||
| awx export --credentials " | awx export --credentials " | ||
| + | |||
| + | |||
| + | # Exemple avec : http:// | ||
| + | awx export --inventory 4 | ||
| + | # Il ne faut pas le numero de l' | ||
| + | awx export --inventory_source 15 | ||
| + | |||
| + | awx -f yaml export > all.yaml | ||
| </ | </ | ||
| + | |||
| Ligne 68: | Ligne 81: | ||
| Alternatives à Ansible Tower / APP : | Alternatives à Ansible Tower / APP : | ||
| - | * [[https:// | + | * [[Notes Ansible |
| * [[https:// | * [[https:// | ||
| * [[https:// | * [[https:// | ||
| Ligne 77: | Ligne 90: | ||
| * https:// | * https:// | ||
| - | <code bash tower-job.sh> | + | |
| + | '' | ||
| + | <code bash> | ||
| #!/bin/bash | #!/bin/bash | ||
| Ligne 216: | Ligne 231: | ||
| tower-cli workflow_job list -W 2389 --status running | tower-cli workflow_job list -W 2389 --status running | ||
| </ | </ | ||
| + | |||
| + | |||
tech/ansible_awx_-_tower_cli.1742825205.txt.gz · Dernière modification : de 127.0.0.1
