1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

Merge pull request #1565 from tim-moody/cal-web

make sure ImageMagick is installed and configured for PDFs
This commit is contained in:
A Holt 2019-03-13 15:19:39 -04:00 committed by GitHub
commit 4db4ef9f4f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,3 +1,18 @@
- name: Install ImageMagick (debuntu)
package:
name:
- imagemagick
state: present
when: is_debuntu
- name: Allow ImageMagick to read PDFs
lineinfile:
path: /etc/ImageMagick-6/policy.xml
regexp: '<policy domain="coder" rights="none" pattern="PDF" />'
line: ' <policy domain="coder" rights="read" pattern="PDF" />'
state: present
when: is_debuntu
- name: Create 3 Calibre-Web folders to store data and configuration files
file:
path: "{{ item }}"