mirror of
https://github.com/iiab/iiab.git
synced 2025-02-15 04:32:11 +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:
commit
a0c8314552
1 changed files with 16 additions and 0 deletions
|
@ -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
|
- name: Create 3 Calibre-Web folders to store data and configuration files
|
||||||
file:
|
file:
|
||||||
path: "{{ item }}"
|
path: "{{ item }}"
|
||||||
|
|
Loading…
Reference in a new issue