molecule scenario to test upgrading from releases

Provide a separate scenario to install the last release, then update to
the current one.
Also includes improved deployment verification (check if uploading a
.txt through the API works).
This commit is contained in:
Fabian Koller
2021-01-16 11:52:36 +01:00
parent 19f73f5782
commit 8884a4dfdf
11 changed files with 192 additions and 25 deletions

View File

@@ -155,7 +155,7 @@
- name: move paperless-ng
command:
cmd: "cp -a {{ tempdir.path }}/paperless-ng/ {{ paperlessng_directory }}"
cmd: "cp -a {{ tempdir.path }}/paperless-ng/. {{ paperlessng_directory }}"
when: not reconfigure_only
- name: remove temporary directory
@@ -367,7 +367,7 @@
owner: "{{ paperlessng_system_user }}"
group: "{{ paperlessng_system_group }}"
mode: g-w,o-rwx
when: venv.changed or not not reconfigure_only
when: venv.changed or not reconfigure_only
- name: configure ghostscript for PDF
lineinfile: