Commit ecf8d8e9 by Feanil Patel

Replace the api_key line if it already exists.

parent 3669afc5
......@@ -56,9 +56,9 @@
- name: datadog | update api-key
lineinfile:
dest="/etc/dd-agent/datadog.conf"
"regexp=^api_key:$"
"line=api_key:{{ common_datadog_api_key }}"
"regexp=^api_key:.*"
"line=api_key:{{ common_dd_api_key }}"
notify:
- datadog | restart the datadog service
tags:
- datadog
\ No newline at end of file
- datadog
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment