- name: Create the data directory ansible.builtin.file: path: "/home/docker/container-data" state: directory mode: '0777' become: true - name: Mount the data share to the VM ansible.builtin.include_tasks: file: ../tasks/mount_nfs.yml vars: mount_path: "/home/docker/container-data" mount_source: "10.89.0.15:/mnt/main/container-data" - name: Create the data directory ansible.builtin.file: path: "/home/docker/container-data/{{ dir_name }}" state: directory mode: '0777' become: true