- name: make tasksmd directories ansible.builtin.file: path: "{{ item}}" state: directory loop: - /opt/stacks/tasksmd - name: copy tasksmd compose file ansible.builtin.copy: src: tasksmd-compose.yml dest: /opt/stacks/tasksmd/compose.yml owner: root mode: 644 - name: deploy tasksmd stack community.docker.docker_compose_v2: project_src: /opt/stacks/tasksmd files: - compose.yml