mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-16 09:53:06 -06:00
install amazon-cloudwatch-agent from package sources instead of direct RPM on AL2022; add workaround for missing group
This commit is contained in:
@@ -9,10 +9,17 @@
|
|||||||
- git
|
- git
|
||||||
- ec2-utils
|
- ec2-utils
|
||||||
|
|
||||||
|
# https://github.com/amazonlinux/amazon-linux-2022/issues/164
|
||||||
|
- name: Ensure group "aoc" exists
|
||||||
|
ansible.builtin.group:
|
||||||
|
name: aoc
|
||||||
|
state: present
|
||||||
|
when: atl_aws_enable_cloudwatch is defined and atl_aws_enable_cloudwatch | bool
|
||||||
|
|
||||||
- name: Install CloudWatch Agent
|
- name: Install CloudWatch Agent
|
||||||
ansible.builtin.dnf:
|
ansible.builtin.dnf:
|
||||||
name:
|
name:
|
||||||
- "{{ aws_cloudwatch_agent_rpm }}"
|
- amazon-cloudwatch-agent
|
||||||
when: atl_aws_enable_cloudwatch is defined and atl_aws_enable_cloudwatch | bool
|
when: atl_aws_enable_cloudwatch is defined and atl_aws_enable_cloudwatch | bool
|
||||||
notify:
|
notify:
|
||||||
- Enable CloudWatch Agent
|
- Enable CloudWatch Agent
|
||||||
|
|||||||
Reference in New Issue
Block a user