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"