diff options
author | clarkzjw <[email protected]> | 2023-01-11 20:12:49 -0800 |
---|---|---|
committer | clarkzjw <[email protected]> | 2023-01-11 20:12:49 -0800 |
commit | b53edcd2736f2ac4d99c2b86924b2a254e2d736b (patch) | |
tree | 9f7a8ccac285688a38c052eadaa48f9030492d4e | |
parent | d0954f71aebc56619f39b73e3db21795bea47c56 (diff) | |
parent | 9ee05c8b0a3d41aeb170285880e19af7812494ce (diff) | |
download | jinwei.me-b53edcd2736f2ac4d99c2b86924b2a254e2d736b.tar.gz |
Merge branch 'datadog'
-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 | ||