2019-08-31 21:10:51 +00:00
|
|
|
- name: Create Calibre Directories
|
|
|
|
file:
|
|
|
|
path: "{{ item }}"
|
|
|
|
state: directory
|
|
|
|
with_items:
|
|
|
|
- "{{ calibre_data_directory }}/config"
|
2019-10-13 21:33:25 +00:00
|
|
|
|
2019-08-31 21:10:51 +00:00
|
|
|
- name: Calibre Docker Container
|
|
|
|
docker_container:
|
|
|
|
name: calibre
|
|
|
|
image: linuxserver/calibre-web:latest
|
|
|
|
pull: true
|
|
|
|
volumes:
|
|
|
|
- "{{ calibre_data_directory }}/config:/config"
|
2019-10-13 21:33:25 +00:00
|
|
|
- "{{ books_root }}:/books"
|
2019-08-31 21:10:51 +00:00
|
|
|
env:
|
|
|
|
TZ: "{{ ansible_nas_timezone }}"
|
|
|
|
PUID: "{{ calibre_user_id }}"
|
|
|
|
PGID: "{{ calibre_group_id }}"
|
|
|
|
DOCKER_MODS: "{{ calibre_ebook_conversion }}"
|
|
|
|
ports:
|
|
|
|
- "8084:8083"
|
|
|
|
restart_policy: unless-stopped
|
|
|
|
labels:
|
|
|
|
traefik.backend: "calibre"
|
|
|
|
traefik.frontend.rule: "Host:calibre.{{ ansible_nas_domain }}"
|
|
|
|
traefik.enable: "{{ calibre_available_externally }}"
|
|
|
|
traefik.port: "8083"
|
|
|
|
memory: 1g
|