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

20 lines
436 B
YAML

---
- 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', dest: 'docker-compose.yml' }
- name: Update and restart container
community.docker.docker_compose_v2:
project_src: ryot
state: present
pull: always
become: true