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

20 lines
447 B
YAML
Raw Normal View History

---
- 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
2024-07-14 21:39:23 +02:00
community.docker.docker_compose_v2:
project_src: metrics
state: present
2024-07-14 21:39:23 +02:00
pull: always
become: true