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,8 +16,7 @@
src: "{{ item.src }}"
dest: "protonmail/{{ item.dest }}"
loop:
- { src: 'docker-compose.yml.j2', dest: 'docker-compose.yml' }
register: protonmail_copy_templates_results
- { src: 'docker-compose.yml', dest: 'docker-compose.yml' }
- name: Create protonmail network
community.docker.docker_network:
@ -35,5 +34,5 @@
project_src: protonmail
state: present
pull: always
restarted: "{{ protonmail.initialized and (protonmail_copy_templates_results.changed or protonmail_copy_files_results.changed) }}"
recreate: "{{ 'always' if protonmail.initialized and protonmail_copy_files_results.changed else 'auto' }}"
become: true