From 5da093918014d6251daf5122f557f52a93d2c339 Mon Sep 17 00:00:00 2001 From: "pulsar89.5" Date: Mon, 26 Feb 2024 14:11:31 +0100 Subject: [PATCH] fix: Skip volume creation if not defined --- tasks/configuration.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/configuration.yml b/tasks/configuration.yml index 15630c4..1094cc3 100644 --- a/tasks/configuration.yml +++ b/tasks/configuration.yml @@ -24,7 +24,7 @@ - name: Créer le volume containers.podman.podman_volume: name: "{{ item.split(':')[0] }}" - when: container.volumes | length > 0 + when: container.get('volumes', []) | length > 0 loop: "{{ container.volumes }}" - name: Déployer le conteneur