mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-14 00:43:06 -06:00
DCD-436: Enable/start CW agent.
This commit is contained in:
15
roles/aws_common/handlers/main.yml
Normal file
15
roles/aws_common/handlers/main.yml
Normal file
@@ -0,0 +1,15 @@
|
||||
---
|
||||
|
||||
- name: Enable CloudWatch Agent
|
||||
systemd:
|
||||
name: "amazon-cloudwatch-agent.service"
|
||||
daemon_reload: true
|
||||
enabled: true
|
||||
when: atl_aws_agent_restart
|
||||
|
||||
- name: Restart CloudWatch Agent
|
||||
systemd:
|
||||
name: "amazon-cloudwatch-agent.service"
|
||||
enabled: true
|
||||
status: restarted
|
||||
when: atl_aws_agent_restart
|
||||
Reference in New Issue
Block a user