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

20
tasks/dsk-redis-agent.yml Normal file
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-redis-agent"
- name: "Create agent config"
ansible.builtin.file:
path: "{{ datasaker_host_path }}/dsk-redis-agent/agent-config.yml"
state: touch
- name: "Setting dsk-redis-agent config"
template:
src: redis-agent-config.yml.j2
dest: "{{ datasaker_host_path }}/dsk-redis-agent/agent-config.yml"