1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 11:42:08 +00:00

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

make idempotent [install ImageMagick for Calibre-Web thumbnail previews of PDFs]
This commit is contained in:
A Holt 2019-03-13 19:37:52 -04:00 committed by GitHub
commit a0c8314552
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,3 +1,19 @@
- name: Install ImageMagick (debuntu)
package:
name:
- imagemagick
state: present
when: is_debuntu
- name: Allow ImageMagick to read PDFs (debuntu)
lineinfile:
path: /etc/ImageMagick-6/policy.xml
regexp: '<policy domain="coder" rights="none" pattern="PDF" />'
backrefs: yes
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 }}"