Begin migration to v2 Step 2
This commit is contained in:
parent
b91292576f
commit
a7140e5a84
37 changed files with 19 additions and 74 deletions
|
@ -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
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
version: '3'
|
||||
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:15
|
Loading…
Add table
Add a link
Reference in a new issue