1
0
Fork 0
myserver-configuration/roles/metrics/tasks/base.yml

20 lines
No EOL
447 B
YAML

---
- name: Check metrics directory exist
ansible.builtin.file:
path: metrics
state: directory
- name: Copy template conf
ansible.builtin.template:
src: "{{ item.src }}"
dest: "metrics/{{ item.dest }}"
loop:
- { src: 'docker-compose.yml', dest: 'docker-compose.yml' }
- name: Update and restart container
community.docker.docker_compose_v2:
project_src: metrics
state: present
pull: always
become: true