mirror of
https://github.com/dj-wasabi/ansible-telegraf.git
synced 2025-07-17 08:46:37 +00:00
As per comment in issue the environment argument should be provided
This commit is contained in:
@ -68,6 +68,9 @@
|
||||
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 }}"
|
||||
environment:
|
||||
http_proxy: "{{ http_proxy | default(None) | default(omit) }}"
|
||||
https_proxy: "{{ https_proxy | default(None) | default(omit) }}"
|
||||
when:
|
||||
- telegraf_agent_package_method == "online"
|
||||
|
||||
|
@ -28,6 +28,9 @@
|
||||
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 }}"
|
||||
environment:
|
||||
http_proxy: "{{ http_proxy | default(None) | omit }}"
|
||||
https_proxy: "{{ https_proxy | default(None) | omit }}"
|
||||
when:
|
||||
- telegraf_agent_package_method == "online"
|
||||
|
||||
|
Reference in New Issue
Block a user