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

21 lines
436 B
YAML
Raw Normal View History

2023-11-11 14:53:32 +01:00
---
- name: Check ryot directory exist
ansible.builtin.file:
path: ryot
state: directory
- name: Copy template conf
ansible.builtin.template:
src: "{{ item.src }}"
dest: "ryot/{{ item.dest }}"
loop:
2024-07-14 22:16:35 +02:00
- { src: 'docker-compose.yml', dest: 'docker-compose.yml' }
2023-11-11 14:53:32 +01:00
- name: Update and restart container
2024-07-14 21:39:23 +02:00
community.docker.docker_compose_v2:
2023-11-11 14:53:32 +01:00
project_src: ryot
state: present
2024-07-14 21:39:23 +02:00
pull: always
2023-11-11 14:53:32 +01:00
become: true