Begin migration to v2 Step 2

This commit is contained in:
Florian RICHER 2024-07-14 22:16:35 +02:00
parent b91292576f
commit a7140e5a84
Signed by: florian.richer
GPG key ID: C73D37CBED7BFC77
37 changed files with 19 additions and 74 deletions

View file

@ -16,13 +16,12 @@
src: "{{ item.src }}"
dest: "matrix/{{ item.dest }}"
loop:
- { src: 'docker-compose.yml.j2', dest: 'docker-compose.yml' }
register: matrix_copy_templates_results
- { src: 'docker-compose.yml', dest: 'docker-compose.yml' }
- name: Update and restart container
community.docker.docker_compose_v2:
project_src: matrix
state: present
pull: always
restarted: "{{ matrix_copy_files_results.changed or matrix_copy_templates_results.changed }}"
recreate: "{{ 'always' if matrix_copy_files_results.changed else 'auto' }}"
become: true