Emmanuel Garette
d1a9c3321c
Proxy configuration =================== env_proxy.port has a default value with ansible we needs to define a new mapping variable: env_proxy_all Examples of Ops inventory file ============================== 1/ VALID: --- env_proxy: host: proxy.example.net 2/ VALID: --- env_proxy: host: proxy.example.net port: "3129"
13 lines
473 B
YAML
13 lines
473 B
YAML
---
|
|
- name: Test variable env_proxy.host
|
|
ansible.builtin.assert:
|
|
that:
|
|
- env_proxy is defined
|
|
- env_proxy.host is defined
|
|
- env_proxy.host is string
|
|
fail_msg: "La variable n'existe pas ou est de mauvais type !"
|
|
- name: Test variable env_proxy.port
|
|
ansible.builtin.assert:
|
|
that:
|
|
- env_proxy.port is not defined or env_proxy.port is string or env_proxy.port is integer
|
|
fail_msg: "La variable n'existe pas ou est de mauvais type !"
|