fix: Skip volume creation if not defined
This commit is contained in:
parent
64fbcbdd3e
commit
5da0939180
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user