Update to 2021-09-09 15:00

master
Daniel Berteaud 3 years ago
parent 69af8822b4
commit 1972ef3ee8
  1. BIN
      roles/lemonldap_ng/files/logos/paperless.png
  2. 9
      roles/paperless_ng/tasks/iptables.yml
  3. 6
      roles/seafile/tasks/install.yml

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

@ -2,8 +2,13 @@
- name: Handle paperless port in the firewall
iptables_raw:
name: paperless_port
name: paperless_{{ paperless_id }}_port
state: "{{ (paperless_src_ip | length > 0) | ternary('present','absent') }}"
rules: "-A INPUT -m state --state NEW -p tcp --dport {{ paperless_port }} -s {{ paperless_src_ip | join(',') }} -j ACCEPT"
when: iptables_manage | default(True)
tags: firewall,ged
- name: Remove old (single instance) paperless rule
iptables_raw:
name: paperless_port
state: absent
tags: firewall,ged

@ -42,7 +42,9 @@
- name: Install Seafile pro license
copy: content={{ seafile_license }} dest={{ seafile_root_dir }}/seafile-license.txt
when: seafile_license is defined
when:
- seafile_license is defined
- seafile_license != '' # defining an empty license means using the Free for 3 user offer
notify:
- restart seafile
- restart seahub
@ -142,7 +144,7 @@
tags: seafile
- name: Copy documentation
copy: src={{ seafile_root_dir }}/tmp/seafile-server-{{ seafile_version }}/seafile/docs/seafile-tutorial.doc dest={{ seafile_data_dir }}/library-template remote_src=True
copy: src={{ seafile_root_dir }}/tmp/seafile-{{ (seafile_license is defined) | ternary('pro-','') }}server-{{ seafile_version }}/seafile/docs/seafile-tutorial.doc dest={{ seafile_data_dir }}/library-template remote_src=True
when: seafile_install_mode == 'install'
tags: seafile

Loading…
Cancel
Save