Add Windows feature of upgrade agents (#146)

This commit is contained in:
PeterSzegedi
2021-05-19 17:06:16 +01:00
committed by GitHub
parent 28cd5b8f6e
commit 968b005f3a
3 changed files with 40 additions and 16 deletions

View File

@ -30,6 +30,9 @@
{% if telegraf_agent_version is version_compare('1.1', '>=') %}
{% if ansible_os_family == "Windows" %}
logfile = "{{ telegraf_win_logfile }}"
logfile_rotation_interval = "{{ telegraf_win_logfile_rotation_interval }}"
logfile_rotation_max_size = "{{ telegraf_win_logfile_rotation_max_size }}"
logfile_rotation_max_archives = {{ telegraf_win_logfile_rotation_max_archives| int }}
{% else %}
logfile = "{{ telegraf_agent_logfile }}"
{% endif %}