ansible/roles/docker/tasks/paperlessngx.yml
2024-11-07 09:29:59 -07:00

26 lines
645 B
YAML

- 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