22 lines
533 B
YAML
22 lines
533 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.j2', dest: 'docker-compose.yml' }
|
|
register: ryot_copy_templates_results
|
|
|
|
- name: Update and restart container
|
|
community.docker.docker_compose:
|
|
project_src: ryot
|
|
state: present
|
|
pull: true
|
|
restarted: "{{ ryot_copy_templates_results.changed }}"
|
|
become: true
|