From dfbd64909a2d0f8f8b1d9b0235bcb1e4847bb82e Mon Sep 17 00:00:00 2001 From: Kevin Conaway Date: Wed, 18 Dec 2019 14:52:14 -0500 Subject: [PATCH] Fix sysprobe service detection for systemd services --- tasks/agent-linux.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/agent-linux.yml b/tasks/agent-linux.yml index f111218d..d8a791fa 100644 --- a/tasks/agent-linux.yml +++ b/tasks/agent-linux.yml @@ -80,7 +80,7 @@ set_fact: datadog_sysprobe_enabled: "{{ system_probe_config is defined and system_probe_config['enabled'] - and ansible_facts.services['datadog-agent-sysprobe'] is defined }}" + and (ansible_facts.services['datadog-agent-sysprobe'] is defined or ansible_facts.services['datadog-agent-sysprobe.service'] is defined) }}" - name: Ensure datadog-agent-sysprobe is running if enabled and installed service: