container: fix legacy docker_volumes compatibility, add missing arguments to argument specs

This commit is contained in:
uumas
2023-02-07 18:00:06 +02:00
parent 5a20226105
commit 5991385def
5 changed files with 47 additions and 22 deletions

View File

@@ -73,3 +73,8 @@
networks: "{{ container_networks | default(omit) }}"
log_driver: local
register: container_out
- name: Reset docker_mounts if converted from docker_volumes
set_fact:
docker_mounts: []
when: final_docker_volumes | length > 0