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

23 lines
538 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:
- { src: 'docker-compose.yml.j2', dest: 'docker-compose.yml' }
register: ryot_copy_templates_results
- 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
restarted: "{{ ryot_copy_templates_results.changed }}"
become: true