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:
commit
4db4ef9f4f
1 changed files with 15 additions and 0 deletions
|
@ -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
|
- name: Create 3 Calibre-Web folders to store data and configuration files
|
||||||
file:
|
file:
|
||||||
path: "{{ item }}"
|
path: "{{ item }}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue