DCD-436: Enable/start CW agent.

This commit is contained in:
Steve Smith
2019-09-11 11:24:50 +10:00
parent cca50a4d9d
commit 5a98350702
4 changed files with 25 additions and 0 deletions

View 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