diff --git a/main.yml b/main.yml index 214bfed..be56167 100644 --- a/main.yml +++ b/main.yml @@ -78,6 +78,9 @@ - name: Deploy Docs import_tasks: tasks/docs.yml tags: docs_deploy + - name: Deploy Audiobookshelf + import_tasks: tasks/audiobookshelf.yml + tags: audiobookshelf_deploy - name: Deploy Gitea Runner import_tasks: tasks/runner.yml tags: runner_deploy diff --git a/tasks/audiobookshelf.yml b/tasks/audiobookshelf.yml new file mode 100644 index 0000000..c4971f9 --- /dev/null +++ b/tasks/audiobookshelf.yml @@ -0,0 +1,27 @@ +--- +- name: Deploy AudioBookshelf + include_role: + name: docker + vars: + name: audiobookshelf + directories: + - "{{ data_dir }}/audiobookshelf" + - "{{ data_dir }}/audiobookshelf/config" + - "{{ data_dir }}/audiobookshelf/metadata" + image: + name: ghcr.io/advplyr/audiobookshelf + tag: latest + networks: + - name: homelab + volumes: + - "{{ media_path }}/Books/Audiobooks:/audiobooks" + - "{{ data_dir }}/audiobookshelf/config:/config" + - "{{ data_dir }}/audiobookshelf/metadata:/metadata" + env: + TZ: "{{ TZ }}" + labels: + traefik.enable: "true" + traefik.http.routers.audiobookshelf.rule: Host(`abooks.fntz.net`) + traefik.http.routers.audiobookshelf.entrypoints: webSecure + traefik.http.routers.audiobookshelf.tls.certresolver: letsencrypt + traefik.http.services.audiobookshelf.loadbalancer.server.port: "80"