diff --git a/Ansible/asserts/proxy.yml b/Ansible/asserts/proxy.yml new file mode 100644 index 0000000..fe7a646 --- /dev/null +++ b/Ansible/asserts/proxy.yml @@ -0,0 +1,8 @@ +--- +- 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 !" diff --git a/doc.md b/doc.md new file mode 100644 index 0000000..1152a79 --- /dev/null +++ b/doc.md @@ -0,0 +1,25 @@ +--- +gitea: none +include_toc: true +--- + +# Variables +## env_proxy + +| Parameter | Comment | +|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| **host**
`mandatory`
**Type:** [`string`](https://forge.cloud.silique.fr/stove/rougail/src/branch/main/doc/variable/README.md#le-type-de-la-variable) | | + +# Example with mandatories variables + +``` +env_proxy: + host: xxx +``` + +# Example with all variables + +``` +env_proxy: + host: xxx +```