localstack-tesis/ansible/roles/cloudwatch_agent/handlers/main.yml

15 lines
336 B
YAML

---
- name: Aplicar configuracion CloudWatch Agent
ansible.builtin.command:
argv:
- /opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-ctl
- -a
- fetch-config
- -m
- ec2
- -s
- -c
- file:/etc/tesis-cloudwatch-agent.json
changed_when: true
when: not ansible_check_mode