ansible/roles/docker/tasks/paperlessngx.yml

26 lines
645 B
YAML
Raw Permalink Normal View History

2024-11-07 17:29:59 +01:00
- 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