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