From 8f202c0120b584cd0bacd6d375a57d446368081a Mon Sep 17 00:00:00 2001 From: StEn Date: Sat, 25 Mar 2023 09:40:07 +0100 Subject: [PATCH] feat(vars): add PAPERLESS_PRE_CONSUME_SCRIPT --- README.md | 1 + defaults/main.yml | 2 +- tasks/paperless_ngx/configuration.yml | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 12bb388..ba1757f 100644 --- a/README.md +++ b/README.md @@ -178,6 +178,7 @@ To save reading space a few abbreviations are used in the tables down below: | `paperless_ngx_conf_consumer_asn_barcode_prefix` | ASN | Y | Y | | 1.12 | | `paperless_ngx_conf_convert_memory_limit` | 0 | Y | Y | | | | `paperless_ngx_conf_convert_tmpdir` | "" | Y | Y | | | +| `paperless_ngx_conf_pre_consume_script` | "" | Y | Y | | | | `paperless_ngx_conf_post_consume_script` | "" | Y | Y | | | | `paperless_ngx_conf_filename_date_order` | "" | Y | Y | | | | `paperless_ngx_conf_number_of_suggested_dates` | 3 | Y | Y | | | diff --git a/defaults/main.yml b/defaults/main.yml index 44f76fa..44c1729 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -84,7 +84,6 @@ paperless_ngx_conf_worker_timeout: 1800 paperless_ngx_conf_time_zone: Europe/London paperless_ngx_conf_enable_nltk: 1 # paperless_ngx_conf_optimize_thumbnails: true # option seems to not exist -# paperless_ngx_conf_pre_consume_script: # option seems to not exist paperless_ngx_conf_email_task_cron: "*/10 * * * *" paperless_ngx_conf_train_task_cron: "5 */1 * * *" paperless_ngx_conf_index_task_cron: "0 0 * * *" @@ -106,6 +105,7 @@ paperless_ngx_conf_consumer_enable_asn_barcode: false paperless_ngx_conf_consumer_asn_barcode_prefix: ASN paperless_ngx_conf_convert_memory_limit: 0 paperless_ngx_conf_convert_tmpdir: +paperless_ngx_conf_pre_consume_script: paperless_ngx_conf_post_consume_script: paperless_ngx_conf_filename_date_order: paperless_ngx_conf_number_of_suggested_dates: 3 diff --git a/tasks/paperless_ngx/configuration.yml b/tasks/paperless_ngx/configuration.yml index 2c19c51..980e0c5 100644 --- a/tasks/paperless_ngx/configuration.yml +++ b/tasks/paperless_ngx/configuration.yml @@ -170,6 +170,8 @@ role_var: "{{ paperless_ngx_conf_convert_memory_limit }}" - pngx_var: PAPERLESS_CONVERT_TMPDIR role_var: "{{ paperless_ngx_conf_convert_tmpdir }}" + - pngx_var: PAPERLESS_PRE_CONSUME_SCRIPT + role_var: "{{ paperless_ngx_conf_pre_consume_script }}" - pngx_var: PAPERLESS_POST_CONSUME_SCRIPT role_var: "{{ paperless_ngx_conf_post_consume_script }}" - pngx_var: PAPERLESS_FILENAME_DATE_ORDER