From ba68ceec5a45748df233c02ac91806c18f525561 Mon Sep 17 00:00:00 2001 From: Ryan Cavicchioni Date: Tue, 30 Aug 2022 07:04:56 -0500 Subject: [PATCH] influxdb: do not start the service is the package is absent --- roles/influxdb/tasks/main.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/influxdb/tasks/main.yaml b/roles/influxdb/tasks/main.yaml index 128a689..23cf980 100644 --- a/roles/influxdb/tasks/main.yaml +++ b/roles/influxdb/tasks/main.yaml @@ -42,3 +42,4 @@ name: "{{ influxdb_service_name }}" state: "{{ influxdb_service_state }}" enabled: "{{ influxdb_service_enabled }}" + when: influxdb_package_state != "absent"