redis, cloudwatch agent 추가

This commit is contained in:
ByeonJungHun
2023-11-29 15:54:03 +09:00
parent 3fa69442b3
commit b23876c206
10 changed files with 156 additions and 3 deletions

View File

@@ -0,0 +1,20 @@
---
- name: "Make agent Directory"
ansible.builtin.file:
path: "{{ datasaker_host_path }}/{{ item }}"
state: directory
recurse: yes
owner: root
group: root
with_items:
- "dsk-cloudwatch-agent"
- name: "Create agent env"
ansible.builtin.file:
path: "{{ datasaker_host_path }}/dsk-cloudwatch-agent/agent.env"
state: touch
- name: "Setting dsk-cloudwatch-agent env"
template:
src: agent.env.j2
dest: "{{ datasaker_host_path }}/dsk-cloudwatch-agent/agent.env"