telegraf: don't start the service if the package is absent

This commit is contained in:
2022-08-30 06:46:16 -05:00
parent 3a149f6a4c
commit ec00bf3d76

View File

@ -62,3 +62,4 @@
name: "{{ telegraf_service_name }}"
state: "{{ telegraf_service_state }}"
enabled: "{{ telegraf_service_enabled }}"
when: telegraf_package_state != "absent"