Files
dsk-iac/ansible/01_old/roles/dsk_bot.datasaker/tasks/dsk-postgres-agent.yml
2023-12-19 13:36:16 +09:00

20 lines
533 B
YAML

---
- name: "Make agent Directory"
ansible.builtin.file:
path: "{{ datasaker_host_path }}/{{ item }}"
state: directory
recurse: yes
owner: root
group: root
with_items:
- "dsk-postgres-agent"
- name: "Create agent config"
ansible.builtin.file:
path: "{{ datasaker_host_path }}/dsk-postgres-agent/agent-config.yml"
state: touch
- name: "Setting dsk-postgres-agent config"
template:
src: postgres-agent-config.yml.j2
dest: "{{ datasaker_host_path }}/dsk-postgres-agent/agent-config.yml"