ansible-roles/roles/system_proxy/defaults/main.yml

22 lines
672 B
YAML
Raw Normal View History

2021-12-01 19:13:34 +01:00
---
2022-02-09 17:00:06 +01:00
# System proxy to use. If undefined or set to an empty string
# proxy will be disabled
2021-12-01 19:13:34 +01:00
# system_proxy: http://proxyout.example.org:3128
2022-02-09 17:00:06 +01:00
# List of hosts for which no proxy should be used
2021-12-01 19:13:34 +01:00
system_proxy_base_no_proxy:
- 127.0.0.1
- localhost
- "{{ inventory_hostname | regex_replace('^([^.]+)\\..*','\\1') }}"
- "{{ inventory_hostname }}"
2022-02-09 17:00:06 +01:00
# Can be used to add no_proxy hosts without overriding the default ones
2021-12-01 19:13:34 +01:00
system_proxy_extra_no_proxy: []
system_proxy_no_proxy: "{{ system_proxy_base_no_proxy + system_proxy_extra_no_proxy }}"
2022-02-09 17:00:06 +01:00
# List of protocols for which env variables will be set (if a proxy is configured)
system_proxy_proto:
- http
- https
- ftp