-
Notifications
You must be signed in to change notification settings - Fork 382
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CLDR-17699 DataDog in Ansible (#3797)
- Loading branch information
Showing
6 changed files
with
45 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,23 @@ | ||
- hosts: cldr-staging.unicode.org | ||
- hosts: | ||
- cldr-staging.unicode.org | ||
- st.unicode.org | ||
become: yes | ||
vars_files: | ||
- vars/main.yml | ||
- local-vars/local.yml | ||
tasks: | ||
- name: Import the Datadog Agent role from the Datadog collection | ||
import_role: | ||
name: datadog.dd.agent | ||
roles: | ||
- { role: datadog.datadog, become: yes } | ||
vars: | ||
datadog_api_key: "{{ dd_key }}" | ||
datadog_site: "{{ dd_site }}" | ||
datadog_apm_instrumentation_enabled: "host" # docker not installed else 'all' | ||
|
||
tasks: | ||
- name: Update datadog.yaml for apm/env | ||
blockinfile: | ||
path: /etc/datadog-agent/datadog.yaml | ||
block: | | ||
# enable apm and set the env | ||
enabled: true | ||
env: {{ dd_env }} | ||
marker: '# {mark} ANSIBLE MANAGED BLOCK' | ||
insertafter: '^apm_config:' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters