mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
Allow running role on all Debian releases
Dynamically template current release string where required.
This commit is contained in:
parent
e48294a74b
commit
92fa978735
@ -1,8 +1,8 @@
|
|||||||
---
|
---
|
||||||
- name: verify operating system
|
- name: verify operating system
|
||||||
fail:
|
fail:
|
||||||
msg: Sorry, only Debian 10 supported at the moment.
|
msg: Sorry, only Debian supported at the moment.
|
||||||
when: not(ansible_distribution == 'Debian' and ansible_distribution_version == '10')
|
when: ansible_distribution != 'Debian'
|
||||||
|
|
||||||
- name: install base dependencies
|
- name: install base dependencies
|
||||||
apt:
|
apt:
|
||||||
@ -45,7 +45,7 @@
|
|||||||
|
|
||||||
- name: set up notesalexp repository (for jbig2enc)
|
- name: set up notesalexp repository (for jbig2enc)
|
||||||
apt_repository:
|
apt_repository:
|
||||||
repo: deb https://notesalexp.org/debian/buster/ buster main
|
repo: "deb https://notesalexp.org/debian/{{ ansible_distribution_release }}/ {{ ansible_distribution_release }} main"
|
||||||
state: present
|
state: present
|
||||||
when: paperlessng_use_jbig2enc
|
when: paperlessng_use_jbig2enc
|
||||||
|
|
||||||
@ -169,7 +169,7 @@
|
|||||||
line: "PAPERLESS_OCR_USER_ARG=\"{{ paperlessng_ocrmypdf_args }}{{ ' --jbig2-lossy' if paperlessng_use_jbig2enc else '' }}\""
|
line: "PAPERLESS_OCR_USER_ARG=\"{{ paperlessng_ocrmypdf_args }}{{ ' --jbig2-lossy' if paperlessng_use_jbig2enc else '' }}\""
|
||||||
- regexp: "^#?PAPERLESS_TIME_ZONE="
|
- regexp: "^#?PAPERLESS_TIME_ZONE="
|
||||||
line: "PAPERLESS_TIME_ZONE={{ paperlessng_time_zone }}"
|
line: "PAPERLESS_TIME_ZONE={{ paperlessng_time_zone }}"
|
||||||
#no_log: true
|
no_log: true
|
||||||
|
|
||||||
- name: configure paperless-ng database [sqlite]
|
- name: configure paperless-ng database [sqlite]
|
||||||
lineinfile:
|
lineinfile:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user