mirror of
https://github.com/iiab/iiab.git
synced 2025-02-15 04:32:11 +00:00
make sure ImageMagick is installed and configured for PDFs
This commit is contained in:
parent
8a00a88f02
commit
fb90912813
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…
Reference in a new issue