--- - name: Create Service Directory file: state: directory path: "{{ compose_dir | mandatory }}" - name: Copy Compose files become: false ansible.posix.synchronize: src: "{{ service_base }}/{{ service | mandatory }}/" dest: "{{ service_dir | mandatory }}" archive: false checksum: true delete: true recursive: true mode: push owner: false group: false perms: false use_ssh_args: true register: compose_files