rougail-tutorials/Ansible/inventory/group_vars/all/proxy.yml
Emmanuel Garette 6ff4392e2b [tutorial Ansible 1.5] variable is not mandatory
Proxy configuration
===================

The variable env_proxy.no_proxy is not mandatory

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

Modify the file: Ops/group_vars/all.yml

1/ VALID:

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

2/ VALID:

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

5 lines
149 B
YAML

---
env_proxy_all:
host: "{{ env_proxy.host }}"
port: "{{ env_proxy.port | default(3128) }}"
no_proxy: "{{ env_proxy.no_proxy | default([])}}"