--- - name: Install ddclient (not containerized) when: not ddclient_containerized block: - import_tasks: install.yml - import_tasks: configure.yml become: true - name: Install ddclient (containerized) when: ddclient_containerized block: - name: Merge volumes set_fact: ddclient_volumes: "{{ ddclient_volumes | default([]) + [item.key +':'+ item.value] }}" loop: "{{ ddclient_default_volumes | dict2items }}" - import_tasks: docker.yml when: ddclient_container_engine == "docker" - import_tasks: podman.yml when: ddclient_container_engine == "podman" become: true