You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.2 KiB

- name: Set up Calibre-web
hosts: lotus-land-story
vars_files:
- vars.yml
tasks:
- name: Create directories for volume mounting
ansible.builtin.file:
path: /mnt/lotus-land-story/calibre-web/{{ item }}
state: directory
mode: "0755"
loop:
- books
- config
- name: Get docker network
community.docker.docker_network:
name: lotus_land_story
register: docker_network
# https://github.com/linuxserver/docker-calibre-web#docker-compose-recommended-click-here-for-more-info
- name: Run Calibre-web
community.docker.docker_container:
name: calibre-web
image: lscr.io/linuxserver/calibre-web:latest
restart: true
env:
PUID: "0"
PGID: "0"
TZ: Etc/UTC
DOCKER_MODS: linuxserver/mods:universal-calibre
volumes:
- /mnt/lotus-land-story/calibre-web/books:/books
- /mnt/lotus-land-story/calibre-web/config:/config
restart_policy: unless-stopped
networks:
- name: lotus_land_story
handlers:
- name: Import restarts
ansible.builtin.import_tasks: restarts.yml
# vim: ft=yaml.ansible