Skip to content

Commit

Permalink
feat(vars): add PAPERLESS_PRE_CONSUME_SCRIPT (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenengland committed Mar 25, 2023
1 parent 2ab9a4c commit 7289bfa
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 | | |
Expand Down
2 changes: 1 addition & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 * * *"
Expand All @@ -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
Expand Down
2 changes: 2 additions & 0 deletions tasks/paperless_ngx/configuration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7289bfa

Please sign in to comment.