parent
52e6f208bf
commit
da44c93ee9
@ -0,0 +1,43 @@
|
||||
- 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
|
Loading…
Reference in new issue