diff options
author | clarkzjw <[email protected]> | 2023-01-11 20:12:37 -0800 |
---|---|---|
committer | clarkzjw <[email protected]> | 2023-01-11 20:12:37 -0800 |
commit | 9ee05c8b0a3d41aeb170285880e19af7812494ce (patch) | |
tree | 9f7a8ccac285688a38c052eadaa48f9030492d4e | |
parent | 1863462e23f8d7099bb26c3a11d5ed9a2cce54cd (diff) | |
download | jinwei.me-9ee05c8b0a3d41aeb170285880e19af7812494ce.tar.gz |
fix datadogdatadog
-rw-r--r-- | jinwei.me/config/roles/debian_init/tasks/main.yaml | 12 |
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 | ||