diff --git a/changelogs/fragments/duplicate-windows-agent.yml b/changelogs/fragments/duplicate-windows-agent.yml new file mode 100644 index 000000000..427d1cb79 --- /dev/null +++ b/changelogs/fragments/duplicate-windows-agent.yml @@ -0,0 +1,2 @@ +minor_changes: + - agent role - Removed duplicative Windows agent task diff --git a/roles/zabbix_agent/tasks/Windows.yml b/roles/zabbix_agent/tasks/Windows.yml index 3ab803c95..9b7501d9a 100644 --- a/roles/zabbix_agent/tasks/Windows.yml +++ b/roles/zabbix_agent/tasks/Windows.yml @@ -350,18 +350,3 @@ when: not zabbix_windows_service.exists tags: - service - -- name: "Windows | Set service startup mode to auto, ensure it is started and set auto-recovery" - ansible.windows.win_service: - name: "{{ zabbix_win_svc_name }}" - start_mode: auto - failure_actions: - - type: restart - delay_ms: 5000 - - type: restart - delay_ms: 10000 - - type: restart - delay_ms: 20000 - failure_reset_period_sec: 86400 - tags: - - service