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

This commit is contained in:
Ryan Cavicchioni 2022-08-30 06:46:16 -05:00
parent 3a149f6a4c
commit ec00bf3d76
Signed by: ryanc
GPG Key ID: 877EEDAF9245103D

View File

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