mirror of
https://github.com/dj-wasabi/ansible-telegraf.git
synced 2025-07-17 08:46:37 +00:00
Added the use_proxy argument to use a proxy (or not)
This commit is contained in:
@ -67,6 +67,7 @@
|
||||
get_url:
|
||||
url: https://dl.influxdata.com/telegraf/releases/{{ telegraf_agent_package_file_deb }}
|
||||
dest: "{{ telegraf_agent_package }}"
|
||||
use_proxy: "{{ true if http_proxy is defined and http_proxy else false }}"
|
||||
when:
|
||||
- telegraf_agent_package_method == "online"
|
||||
|
||||
|
@ -27,6 +27,7 @@
|
||||
get_url:
|
||||
url: https://dl.influxdata.com/telegraf/releases/{{ telegraf_agent_package_file_rpm }}
|
||||
dest: "{{ telegraf_agent_package }}"
|
||||
use_proxy: "{{ true if http_proxy is defined and http_proxy else false }}"
|
||||
when:
|
||||
- telegraf_agent_package_method == "online"
|
||||
|
||||
|
Reference in New Issue
Block a user