tech:ansible_-_dry_-_module_defaults
Différences
Ci-dessous, les différences entre deux révisions de la page.
| tech:ansible_-_dry_-_module_defaults [2025/12/04 11:23] – créée Jean-Baptiste | tech:ansible_-_dry_-_module_defaults [2025/12/04 11:53] (Version actuelle) – Jean-Baptiste | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| + | < | ||
| + | {{tag> | ||
| + | |||
| + | # Ansible - DRY - module_defaults | ||
| + | |||
| + | |||
| + | |||
| + | ~~~yaml | ||
| + | - name: Test AWX create obj | ||
| + | hosts: localhost | ||
| + | gather_facts: | ||
| + | |||
| + | vars: | ||
| + | awx_cred: | ||
| + | controller_host: | ||
| + | controller_username: | ||
| + | controller_password: | ||
| + | # validate_certs: | ||
| + | |||
| + | module_defaults: | ||
| + | awx.awx.credential: | ||
| + | awx.awx.project: | ||
| + | awx.awx.inventory: | ||
| + | awx.awx.inventory_source: | ||
| + | awx.awx.credential_type: | ||
| + | awx.awx.execution_environment: | ||
| + | awx.awx.job_template: | ||
| + | ~~~ | ||
| + | |||
| + | ~~~ | ||
| + | $ ansible_collections/ | ||
| + | controller | ||
| + | ~~~ | ||
| + | |||
| + | ~~~yaml | ||
| + | - name: Test AWX create obj | ||
| + | hosts: localhost | ||
| + | gather_facts: | ||
| + | |||
| + | module_defaults: | ||
| + | group/ | ||
| + | controller_host: | ||
| + | controller_username: | ||
| + | controller_password: | ||
