rougail-tutorials/doc.md
Emmanuel Garette f1a276f3d5 [tutorial Ansible 1.4] a variable with multiple values
Proxy configuration
===================

Add env_proxy.no_proxy for proxy exception

---
env_proxy:
  host: proxy.example.net
  no_proxy:
    - localhost
    - 192.168.1.1
    - .ac-dijon.fr

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

1/ INVALID, must be a list:

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

2/ INVALID, an integer:

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

3/ INVALID, without value:

---
env_proxy:
  host: proxy.example.net
2023-12-18 11:34:32 +01:00

3.2 KiB
Raw Blame History

Table of Contents

Variables

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
mandatory
Type: domainname
The proxy servers address.
Specifies the hostname of proxy server to enable proxy server access to all of your HTTP(s) requests. .
Example: proxy.silique.fr
port
mandatory
Type: port
The proxy server's port.
Default: 3128
no_proxy
mandatory, multiple
Type: domainname
Exclude proxy server.
Network address(es), network address range(s) and domains to exclude from using the proxy when initiating connection(s). .
Examples: 192.168.1.1, 192.168.10.0/24, www.silique.fr, .internal.silique.fr

Example with mandatories variables

env_proxy:
  host: proxy.silique.fr
  no_proxy:
  - 192.168.1.1
  - 192.168.10.0/24
  - www.silique.fr
  - .internal.silique.fr

Example with all variables

env_proxy:
  host: proxy.silique.fr
  port: '3128'
  no_proxy:
  - 192.168.1.1
  - 192.168.10.0/24
  - www.silique.fr
  - .internal.silique.fr