--- - name: "set local variables from overrides and defaults" set_fact: localservices: "{{ (localservices_defaults | combine(localservices_override, recursive=True)) if localservices_override else localservices_defaults }}" - name: ensure that path exists file: path: "{{ path }}/config/localservices" state: directory - import_role: name: storage_mount vars: storage_mount_override: host: "{{ localservices.networkmount.host }}" host_path: "{{ localservices.networkmount.host_path }}" args: "{{ localservices.networkmount.args }}" type: "{{ localservices.networkmount.type }}" dest_path: "{{ localservices.localservices.path }}" when: localservices.networkmount.host | length > 1 - name: template docker compose template: src: "compose.yml.j2" dest: "{{ path }}/compose.yml" - name: ensure everything is up community.docker.docker_compose_v2: project_src: "{{ path }}" project_name: "{{ role_name }}" recreate: always state: "present"