aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--jinwei.me/config/roles/debian_init/tasks/main.yaml12
1 files changed, 10 insertions, 2 deletions
diff --git a/jinwei.me/config/roles/debian_init/tasks/main.yaml b/jinwei.me/config/roles/debian_init/tasks/main.yaml
index a8d45d7..c6d88c3 100644
--- a/jinwei.me/config/roles/debian_init/tasks/main.yaml
+++ b/jinwei.me/config/roles/debian_init/tasks/main.yaml
@@ -94,5 +94,13 @@
94 become: true 94 become: true
95 95
96- name: Install Datadog 96- name: Install Datadog
97 command: 97 shell: |
98 DD_API_KEY={{ lookup('aws_ssm', '/jinwei-me/datadog/api_key') }} DD_SITE="datadoghq.com" bash -c "$(curl -L https://s3.amazonaws.com/dd-agent/scripts/install_script_agent7.sh)" 98 export DD_API_KEY={{ lookup('aws_ssm', '/jinwei-me/datadog/api_key') }} && \
99 export DD_SITE="datadoghq.com" && \
100 bash -c "$(curl -L https://s3.amazonaws.com/dd-agent/scripts/install_script_agent7.sh)"
101
102- name: enable datadog service
103 systemd:
104 name: datadog-agent
105 enabled: true
106 daemon_reload: true
Powered by cgit v1.2.3 (git 2.41.0)