Update to 2021-08-26 10:00

master
Daniel Berteaud 3 years ago
parent 263ec730df
commit 8622e4fe18
  1. 9
      README.md
  2. 4
      roles/appsmith/defaults/main.yml
  3. 8
      roles/elasticsearch/tasks/main.yml
  4. 4
      roles/navidrome/defaults/main.yml
  5. 1
      roles/paperless_ng/meta/main.yml
  6. 4
      roles/paperless_ng/tasks/conf.yml
  7. 1
      roles/paperless_ng/tasks/directories.yml
  8. 1
      roles/paperless_ng/templates/paperless.conf.j2
  9. 3
      roles/paperless_ng/vars/RedHat-8.yml

@ -143,9 +143,12 @@ nginx_auto_letsencrypt_cert: True
# Default vhost settings # Default vhost settings
nginx_default_vhost_extra: nginx_default_vhost_extra:
auth: llng auth: llng
naxsi: False csp: >-
naxsi_learn: True default-src 'self' 'unsafe-inline' blob:;
csp: "default-src 'self' 'unsafe-inline' blob:; style-src-elem 'self' 'unsafe-inline' data:; img-src 'self' data: blob: https://stats.fws.fr; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://stats.fws.fr blob:; font-src 'self' data:" style-src-elem 'self' 'unsafe-inline' data:;
img-src 'self' data: blob: https://stats.fws.fr;
script-src 'self' 'unsafe-inline' 'unsafe-eval' https://stats.fws.fr blob:;
font-src 'self' data:
proxy: proxy:
cache: True cache: True
backend: http://web1.fws.fr backend: http://web1.fws.fr

@ -1,11 +1,11 @@
--- ---
# Version to deploy # Version to deploy
appsmith_version: 1.5.13 appsmith_version: 1.5.15
# URL of the source archive # URL of the source archive
appsmith_archive_url: https://github.com/appsmithorg/appsmith/archive/v{{ appsmith_version }}.tar.gz appsmith_archive_url: https://github.com/appsmithorg/appsmith/archive/v{{ appsmith_version }}.tar.gz
# sha1sum of the archive # sha1sum of the archive
appsmith_archive_sha1: dc5dd143ee781e3b17438f485bdada8b878c8fb6 appsmith_archive_sha1: 55834598899879579baa3e6a97620016332a353d
# Root directory where appsmith will be installed # Root directory where appsmith will be installed
appsmith_root_dir: /opt/appsmith appsmith_root_dir: /opt/appsmith

@ -50,6 +50,10 @@
- post - post
tags: es tags: es
- name: Create backup dir
file: path={{ es_backup_dir }} state=directory owner=elasticsearch group=elasticsearch mode=700
tags: es
- name: Create systemd unit snippet dir - name: Create systemd unit snippet dir
file: path=/etc/systemd/system/elasticsearch.service.d state=directory file: path=/etc/systemd/system/elasticsearch.service.d state=directory
tags: es tags: es
@ -80,10 +84,6 @@
service: name=elasticsearch state=started enabled=True service: name=elasticsearch state=started enabled=True
tags: es tags: es
- name: Create backup dir
file: path={{ es_backup_dir }} state=directory owner=elasticsearch group=elasticsearch mode=700
tags: es
- name: Declare repo in ElasticSearch - name: Declare repo in ElasticSearch
uri: uri:
url: http://localhost:{{ es_port }}/_snapshot/lbkp url: http://localhost:{{ es_port }}/_snapshot/lbkp

@ -1,11 +1,11 @@
--- ---
# Version to deploy # Version to deploy
nd_version: 0.44.1 nd_version: 0.45.1
# URL of the archive # URL of the archive
nd_archive_url: https://github.com/navidrome/navidrome/releases/download/v{{ nd_version }}/navidrome_{{ nd_version }}_Linux_x86_64.tar.gz nd_archive_url: https://github.com/navidrome/navidrome/releases/download/v{{ nd_version }}/navidrome_{{ nd_version }}_Linux_x86_64.tar.gz
# Expected sha1 of the archive # Expected sha1 of the archive
nd_archive_sha1: 39acb4fc6f4375d50da96c00ecc07045b0263dca nd_archive_sha1: f9ed7672d520afdfd80002c3cf91619d42785faf
# Should ansible handle upgrades, or only initial install ? # Should ansible handle upgrades, or only initial install ?
nd_manage_upgrade: True nd_manage_upgrade: True

@ -6,3 +6,4 @@ dependencies:
when: paperless_db_server in ['localhost','127.0.0.1'] when: paperless_db_server in ['localhost','127.0.0.1']
- role: redis_server - role: redis_server
when: paperless_redis_url | urlsplit('hostname') in ['localhost','127.0.0.1'] when: paperless_redis_url | urlsplit('hostname') in ['localhost','127.0.0.1']
- role: repo_rpmfusion # for ffmpeg, required by unpaper

@ -23,6 +23,9 @@
app_path: "{{ paperless_root_dir }}/app/src" app_path: "{{ paperless_root_dir }}/app/src"
virtualenv: "{{ paperless_root_dir }}/venv" virtualenv: "{{ paperless_root_dir }}/venv"
- name: Set correct permissions
file: path={{ paperless_root_dir }}/media recurse=True owner={{ paperless_user }} group={{ paperless_user }}
tags: ged tags: ged
- when: paperless_install_mode == 'install' - when: paperless_install_mode == 'install'
@ -36,3 +39,4 @@
DJANGO_SUPERUSER_PASSWORD: '{{ paperless_admin_pass }}' DJANGO_SUPERUSER_PASSWORD: '{{ paperless_admin_pass }}'
tags: ged tags: ged

@ -22,6 +22,7 @@
mode: 700 mode: 700
- dir: media - dir: media
owner: "{{ paperless_user }}" owner: "{{ paperless_user }}"
mode: 700
- dir: static - dir: static
- dir: consume - dir: consume
owner: "{{ paperless_user }}" owner: "{{ paperless_user }}"

@ -24,6 +24,7 @@ PAPERLESS_CONSUMER_DELETE_DUPLICATES=True
PAPERLESS_CONSUMER_RECURSIVE=True PAPERLESS_CONSUMER_RECURSIVE=True
PAPERLESS_CONSUMER_SUBDIRS_AS_TAGS=True PAPERLESS_CONSUMER_SUBDIRS_AS_TAGS=True
PAPERLESS_CONVERT_TMPDIR={{ paperless_root_dir }}/tmp PAPERLESS_CONVERT_TMPDIR={{ paperless_root_dir }}/tmp
PAPERLESS_SCRATCH_DIR={{ paperless_root_dir }}/tmp
{% if paperless_auth_header is defined %} {% if paperless_auth_header is defined %}
PAPERLESS_ENABLE_HTTP_REMOTE_USER=True PAPERLESS_ENABLE_HTTP_REMOTE_USER=True
PAPERLESS_HTTP_REMOTE_USER_HEADER_NAME={{ paperless_auth_header }} PAPERLESS_HTTP_REMOTE_USER_HEADER_NAME={{ paperless_auth_header }}

@ -13,8 +13,11 @@ paperless_packages:
- libpq-devel - libpq-devel
- file-libs - file-libs
- tesseract - tesseract
- tesseract-osd
- tesseract-langpack-fra - tesseract-langpack-fra
- tesseract-langpack-deu - tesseract-langpack-deu
- tesseract-langpack-spa - tesseract-langpack-spa
- tesseract-langpack-ita - tesseract-langpack-ita
- policycoreutils - policycoreutils
- unpaper
- ghostscript

Loading…
Cancel
Save