Proxy configuration =================== Add the env_proxy.port variable --- env_proxy: host: proxy.example.net port: "3128" Examples of Ops inventory file ============================== 1/ INVALID only with rougail: --- env_proxy: host: proxy.example.net port: 3128 2/ INVALID, port is missing: --- env_proxy: host: proxy.example.net
14 lines
474 B
YAML
14 lines
474 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 defined
|
|
- env_proxy.port is string or env_proxy.port is integer
|
|
fail_msg: "La variable n'existe pas ou est de mauvais type !"
|