From 069582559dd770360274cea07373ea9849151c95 Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Mon, 18 Dec 2023 11:34:31 +0100 Subject: [PATCH] [tutorial Rougail 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 --- Rougail/socle/03-proxy.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Rougail/socle/03-proxy.yml b/Rougail/socle/03-proxy.yml index b4c03f0..88a21e2 100644 --- a/Rougail/socle/03-proxy.yml +++ b/Rougail/socle/03-proxy.yml @@ -20,3 +20,20 @@ env_proxy: description: The proxy server's port type: port default: "3128" + no_proxy: + description: Exclude proxy server + help: | + Network address(es), network address range(s) and domains to exclude from + using the proxy when initiating connection(s). + type: "domainname" + params: + allow_ip: true + allow_cidr_network: true + allow_without_dot: true + allow_startswith_dot: true + multi: true + test: + - 192.168.1.1 + - 192.168.10.0/24 + - www.silique.fr + - .internal.silique.fr