mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
calibre-web/tasks/install.yml: Update + clean comments!
This commit is contained in:
parent
3f74b51f20
commit
c657581e69
1 changed files with 8 additions and 10 deletions
|
@ -19,6 +19,7 @@
|
||||||
# - gcc # compiler
|
# - gcc # compiler
|
||||||
# state: present
|
# state: present
|
||||||
# when: python_version is version('3.10', '>=')
|
# when: python_version is version('3.10', '>=')
|
||||||
|
|
||||||
- name: Allow ImageMagick to read PDFs, per /etc/ImageMagick-6/policy.xml, to create book cover thumbnails
|
- name: Allow ImageMagick to read PDFs, per /etc/ImageMagick-6/policy.xml, to create book cover thumbnails
|
||||||
lineinfile:
|
lineinfile:
|
||||||
path: /etc/ImageMagick-6/policy.xml
|
path: /etc/ImageMagick-6/policy.xml
|
||||||
|
@ -43,7 +44,13 @@
|
||||||
- "{{ calibreweb_config }}" # /library/calibre-web/config
|
- "{{ calibreweb_config }}" # /library/calibre-web/config
|
||||||
- "{{ calibreweb_venv_path }}" # /usr/local/calibre-web-py3
|
- "{{ calibreweb_venv_path }}" # /usr/local/calibre-web-py3
|
||||||
|
|
||||||
## TODO: Calibre-web future release might get into pypi https://github.com/janeczku/calibre-web/issues/456
|
# FYI since May 2021, Calibre-Web (major releases) can be installed with pip:
|
||||||
|
# https://pypi.org/project/calibreweb/
|
||||||
|
# https://github.com/janeczku/calibre-web/issues/456
|
||||||
|
# https://github.com/janeczku/calibre-web/issues/677
|
||||||
|
# https://github.com/janeczku/calibre-web/pull/927
|
||||||
|
# https://github.com/janeczku/calibre-web/pull/1459
|
||||||
|
|
||||||
- name: Clone i.e. download Calibre-Web ({{ calibreweb_version }}) from {{ calibreweb_repo_url }} to {{ calibreweb_venv_path }} (~94 MB initially, ~115+ MB later)
|
- name: Clone i.e. download Calibre-Web ({{ calibreweb_version }}) from {{ calibreweb_repo_url }} to {{ calibreweb_venv_path }} (~94 MB initially, ~115+ MB later)
|
||||||
git:
|
git:
|
||||||
repo: "{{ calibreweb_repo_url }}" # e.g. https://github.com/janeczku/calibre-web
|
repo: "{{ calibreweb_repo_url }}" # e.g. https://github.com/janeczku/calibre-web
|
||||||
|
@ -52,15 +59,6 @@
|
||||||
depth: 1
|
depth: 1
|
||||||
version: "{{ calibreweb_version }}" # e.g. master, 0.6.20
|
version: "{{ calibreweb_version }}" # e.g. master, 0.6.20
|
||||||
|
|
||||||
## Ansible Pip Bug: Cannot use 'chdir' with 'env' https://github.com/ansible/ansible/issues/37912 (Patch landed)
|
|
||||||
#- name: Download calibre-web dependencies into vendor subdirectory.
|
|
||||||
# pip:
|
|
||||||
# requirements: "{{ calibreweb_path }}/requirements.txt"
|
|
||||||
# chdir: "{{ calibreweb_path }}"
|
|
||||||
# extra_args: '--target vendor'
|
|
||||||
# ignore_errors: True
|
|
||||||
##
|
|
||||||
# Implementing this with Ansible command module for now.
|
|
||||||
- name: Download Calibre-Web dependencies from 'requirements.txt' into python3 virtual environment {{ calibreweb_venv_path }}
|
- name: Download Calibre-Web dependencies from 'requirements.txt' into python3 virtual environment {{ calibreweb_venv_path }}
|
||||||
pip:
|
pip:
|
||||||
requirements: "{{ calibreweb_venv_path }}/requirements.txt"
|
requirements: "{{ calibreweb_venv_path }}/requirements.txt"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue