diff --git a/roles/cloud/tasks/base.yml b/roles/cloud/tasks/base.yml index 88fb514..ccf388b 100644 --- a/roles/cloud/tasks/base.yml +++ b/roles/cloud/tasks/base.yml @@ -27,9 +27,9 @@ register: cloud_copy_templates_results - name: Update and restart container - community.docker.docker_compose: + community.docker.docker_compose_v2: project_src: cloud state: present - pull: true + pull: always restarted: "{{ cloud_copy_files_results.changed or cloud_copy_templates_results.changed }}" become: true \ No newline at end of file diff --git a/roles/dolibarr/tasks/base.yml b/roles/dolibarr/tasks/base.yml index 7059f7f..7d5e108 100644 --- a/roles/dolibarr/tasks/base.yml +++ b/roles/dolibarr/tasks/base.yml @@ -25,9 +25,9 @@ become: true - name: Update and restart container - community.docker.docker_compose: + community.docker.docker_compose_v2: project_src: dolibarr state: present - pull: true + pull: always restarted: "{{ dolibarr_copy_templates_results.changed }}" become: true \ No newline at end of file diff --git a/roles/gitea/tasks/base.yml b/roles/gitea/tasks/base.yml index 1ea98d0..d131c86 100644 --- a/roles/gitea/tasks/base.yml +++ b/roles/gitea/tasks/base.yml @@ -15,9 +15,9 @@ register: gitea_copy_templates_results - name: Update and restart container - community.docker.docker_compose: + community.docker.docker_compose_v2: project_src: gitea state: present - pull: true + pull: always restarted: "{{ gitea_copy_templates_results.changed }}" become: true \ No newline at end of file diff --git a/roles/home_assistant/tasks/base.yml b/roles/home_assistant/tasks/base.yml index fc9f128..bf5f638 100644 --- a/roles/home_assistant/tasks/base.yml +++ b/roles/home_assistant/tasks/base.yml @@ -14,9 +14,9 @@ register: home_assistant_copy_templates_results - name: Update and restart container - community.docker.docker_compose: + community.docker.docker_compose_v2: project_src: home_assistant state: present - pull: true + pull: always restarted: "{{ home_assistant_copy_templates_results.changed }}" become: true \ No newline at end of file diff --git a/roles/matrix/tasks/base.yml b/roles/matrix/tasks/base.yml index a116bc9..51995c6 100644 --- a/roles/matrix/tasks/base.yml +++ b/roles/matrix/tasks/base.yml @@ -20,9 +20,9 @@ register: matrix_copy_templates_results - name: Update and restart container - community.docker.docker_compose: + community.docker.docker_compose_v2: project_src: matrix state: present - pull: true + pull: always restarted: "{{ matrix_copy_files_results.changed or matrix_copy_templates_results.changed }}" become: true diff --git a/roles/metrics/tasks/base.yml b/roles/metrics/tasks/base.yml index a1ece6e..c1dd1e4 100644 --- a/roles/metrics/tasks/base.yml +++ b/roles/metrics/tasks/base.yml @@ -14,9 +14,9 @@ register: metrics_copy_templates_results - name: Update and restart container - community.docker.docker_compose: + community.docker.docker_compose_v2: project_src: metrics state: present - pull: true + pull: always restarted: "{{ metrics_copy_templates_results.changed }}" become: true \ No newline at end of file diff --git a/roles/n8n/tasks/base.yml b/roles/n8n/tasks/base.yml index deff51b..03be16d 100644 --- a/roles/n8n/tasks/base.yml +++ b/roles/n8n/tasks/base.yml @@ -14,9 +14,9 @@ register: n8n_copy_templates_results - name: Update and restart container - community.docker.docker_compose: + community.docker.docker_compose_v2: project_src: n8n state: present - pull: true + pull: always restarted: "{{ n8n_copy_templates_results.changed }}" become: true diff --git a/roles/portfolio/tasks/base.yml b/roles/portfolio/tasks/base.yml index f4cd2c2..499560e 100644 --- a/roles/portfolio/tasks/base.yml +++ b/roles/portfolio/tasks/base.yml @@ -14,9 +14,9 @@ register: portfolio_copy_templates_results - name: Update and restart container - community.docker.docker_compose: + community.docker.docker_compose_v2: project_src: portfolio state: present - pull: true + pull: always restarted: "{{ portfolio_copy_templates_results.changed }}" become: true \ No newline at end of file diff --git a/roles/protonmail/tasks/base.yml b/roles/protonmail/tasks/base.yml index 5dff606..10862ad 100644 --- a/roles/protonmail/tasks/base.yml +++ b/roles/protonmail/tasks/base.yml @@ -31,9 +31,9 @@ when: not protonmail.initialized - name: Update and restart container - community.docker.docker_compose: + community.docker.docker_compose_v2: project_src: protonmail state: present - pull: true + pull: always restarted: "{{ protonmail.initialized and (protonmail_copy_templates_results.changed or protonmail_copy_files_results.changed) }}" become: true diff --git a/roles/ryot/tasks/base.yml b/roles/ryot/tasks/base.yml index 58ed9e8..e0e99f8 100644 --- a/roles/ryot/tasks/base.yml +++ b/roles/ryot/tasks/base.yml @@ -14,9 +14,9 @@ register: ryot_copy_templates_results - name: Update and restart container - community.docker.docker_compose: + community.docker.docker_compose_v2: project_src: ryot state: present - pull: true + pull: always restarted: "{{ ryot_copy_templates_results.changed }}" become: true diff --git a/roles/traefik/tasks/base.yml b/roles/traefik/tasks/base.yml index 1cf2e85..c28460a 100644 --- a/roles/traefik/tasks/base.yml +++ b/roles/traefik/tasks/base.yml @@ -21,9 +21,9 @@ dest: "traefik/config/dynamic_conf.yml" - name: Update and restart container - community.docker.docker_compose: + community.docker.docker_compose_v2: project_src: traefik state: present - pull: true + pull: always restarted: "{{ traefik_copy_templates_results.changed }}" become: true \ No newline at end of file diff --git a/roles/vaultwarden/tasks/base.yml b/roles/vaultwarden/tasks/base.yml index 13ac4fe..f918f0b 100644 --- a/roles/vaultwarden/tasks/base.yml +++ b/roles/vaultwarden/tasks/base.yml @@ -34,9 +34,9 @@ become: true - name: Update and restart container - community.docker.docker_compose: + community.docker.docker_compose_v2: project_src: vaultwarden state: present - pull: true + pull: always restarted: "{{ vaultwarden_copy_templates_results.changed }}" become: true \ No newline at end of file diff --git a/roles/watchtower/tasks/base.yml b/roles/watchtower/tasks/base.yml index 73aca99..d893562 100644 --- a/roles/watchtower/tasks/base.yml +++ b/roles/watchtower/tasks/base.yml @@ -14,9 +14,9 @@ register: watchtower_copy_templates_results - name: Force update and restart container - community.docker.docker_compose: + community.docker.docker_compose_v2: project_src: watchtower state: present - pull: true + pull: always restarted: "{{ watchtower_copy_templates_results.changed }}" become: true diff --git a/roles/whoami/tasks/base.yml b/roles/whoami/tasks/base.yml index 9c48636..7ee00b2 100644 --- a/roles/whoami/tasks/base.yml +++ b/roles/whoami/tasks/base.yml @@ -14,9 +14,9 @@ register: whoami_copy_templates_results - name: Force update and restart container - community.docker.docker_compose: + community.docker.docker_compose_v2: project_src: whoami state: present - pull: true + pull: always restarted: "{{ whoami_copy_templates_results.changed }}" become: true diff --git a/roles/wireguard/tasks/base.yml b/roles/wireguard/tasks/base.yml index 064a402..00874f1 100644 --- a/roles/wireguard/tasks/base.yml +++ b/roles/wireguard/tasks/base.yml @@ -14,9 +14,9 @@ register: wireguard_copy_templates_results - name: Update and restart container - community.docker.docker_compose: + community.docker.docker_compose_v2: project_src: wireguard state: present - pull: true + pull: always restarted: "{{ wireguard_copy_templates_results.changed }}" become: true