[tutorial Ansible 1.1] advanced hostname variable

Proxy configuration
===================

Modify the "host" variable

Examples of Ops inventory file
==============================

1/ VALID:

---
env_proxy:
  host: proxy.example.net

2/ INVALID, host is null:

---
env_proxy:
  host:

3/ INVALID, host is an integer:

---
env_proxy:
  host: 1

4/ INVALID but only for rougail:

---
env_proxy:
  host: the proxy
This commit is contained in:
egarette@silique.fr 2023-12-18 11:34:30 +01:00
parent af85413f66
commit e80c4c4741

15
doc.md
View file

@ -4,22 +4,29 @@ include_toc: true
---
# Variables
## env_proxy
## HTTP(s) proxy server overview and configuration (env_proxy)
A proxy server acts as an intermediary gateway between a client and another
HTTP(s) server, such as the Internet.
It makes service requests on behalf of a local client and allows the client
to make network connections to network services outside its own network.
| 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) | |
| **host**<br/>`mandatory`<br/>**Type:** [`domainname`](https://forge.cloud.silique.fr/stove/rougail/src/branch/main/doc/variable/README.md#le-type-de-la-variable) | The proxy servers address.<br/>Specifies the hostname of proxy server to enable proxy server access to all of your HTTP(s) requests. .<br/>**Example:** proxy.silique.fr |
# Example with mandatories variables
```
env_proxy:
host: xxx
host: proxy.silique.fr
```
# Example with all variables
```
env_proxy:
host: xxx
host: proxy.silique.fr
```