paperless: Add role
This commit is contained in:
parent
73368d4c82
commit
dc8ec72581
10 changed files with 235 additions and 0 deletions
16
ansible/roles/paperless/tasks/main.yml
Normal file
16
ansible/roles/paperless/tasks/main.yml
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
---
|
||||
- name: Create Paperless stack environment directory
|
||||
ansible.builtin.file:
|
||||
state: directory
|
||||
path: "{{ stack_paperless_env_dir }}"
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0700
|
||||
|
||||
- name: Start compose stack
|
||||
community.docker.docker_compose_v2:
|
||||
project_name: paperless
|
||||
definition: "{{ lookup('template', 'docker-compose.yaml.j2') | from_yaml }}"
|
||||
remove_orphans: true
|
||||
wait: true
|
||||
wait_timeout: 60
|
||||
Loading…
Add table
Add a link
Reference in a new issue