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