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