[tutorial Ansible 1.0] a single string variable
Proxy configuration =================== Add a single "host" variable --- env_proxy: host: proxy.example.net
This commit is contained in:
parent
5916176182
commit
a19761febe
2 changed files with 33 additions and 0 deletions
8
Ansible/asserts/proxy.yml
Normal file
8
Ansible/asserts/proxy.yml
Normal file
|
@ -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 !"
|
25
doc.md
Normal file
25
doc.md
Normal file
|
@ -0,0 +1,25 @@
|
|||
---
|
||||
gitea: none
|
||||
include_toc: true
|
||||
---
|
||||
|
||||
# Variables
|
||||
## env_proxy
|
||||
|
||||
| Parameter | Comment |
|
||||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| **host**<br/>`mandatory`<br/>**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
|
||||
```
|
Loading…
Reference in a new issue