DCD-436: Make log group unique.

This commit is contained in:
Steve Smith
2019-09-11 13:05:07 +10:00
parent 5a98350702
commit e114fca732
7 changed files with 127 additions and 0 deletions

View File

@@ -12,3 +12,13 @@
set_fact:
atl_cluster_node_id: "{{ ansible_ec2_instance_id }}"
atl_local_ipv4: "{{ ansible_ec2_local_ipv4 | default(ansible_default_ipv4.address) }}"
- name: Generate CloudWatch config
template:
src: "amazon-cloudwatch-agent.json.j2"
dest: "/opt/aws/amazon-cloudwatch-agent/etc/amazon-cloudwatch-agent.json"
owner: root
group: root
mode: 0644
notify:
- Restart CloudWatch Agent