Skip to content

Commit

Permalink
Only try stop sysprobe if it is installed
Browse files Browse the repository at this point in the history
  • Loading branch information
danielsimkus committed Jan 30, 2020
1 parent 3447b3e commit 8db7a6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/agent-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
name: datadog-agent-sysprobe
state: stopped
enabled: no
when: not datadog_skip_running_check and (not datadog_enabled or not datadog_sysprobe_enabled)
when: not datadog_skip_running_check and (not datadog_enabled or not datadog_sysprobe_enabled) and ansible_facts.services['datadog-agent-sysprobe'] is defined

- name: Ensure datadog-agent, datadog-agent-process and datadog-agent-trace are not running
service:
Expand Down

0 comments on commit 8db7a6a

Please sign in to comment.