mirror of
https://git.local.zernis.ch/simon/homeserver.zernis.ch.git
synced 2025-12-15 21:29:40 +01:00
added audiobookstack role
This commit is contained in:
30
roles/audiobookshelf/tasks/main.yml
Normal file
30
roles/audiobookshelf/tasks/main.yml
Normal file
@@ -0,0 +1,30 @@
|
||||
---
|
||||
- name: Create Audiobookshelf directories if it does not exist
|
||||
become: false
|
||||
ansible.builtin.file:
|
||||
path: /home/{{ user['name'] }}/docker/audiobookshelf/{{ item }}
|
||||
state: directory
|
||||
mode: '0755'
|
||||
loop: '{{ audiobookshelf_folder }}'
|
||||
|
||||
- name: Create docker network 'proxy'
|
||||
community.docker.docker_network:
|
||||
name: proxy
|
||||
|
||||
- name: Create Audiobookshelf Container
|
||||
community.docker.docker_container:
|
||||
name: audiobookshelf
|
||||
image: 'ghcr.io/advplyr/audiobookshelf:latest'
|
||||
pull: yes
|
||||
state: started
|
||||
restart_policy: unless-stopped
|
||||
ports:
|
||||
- '11002:80'
|
||||
env:
|
||||
volumes:
|
||||
- /home/{{ user['name'] }}/docker/audiobookshelf/data/audiobooks:/audiobooks
|
||||
- /home/{{ user['name'] }}/docker/audiobookshelf/data/podcasts:/podcasts
|
||||
- /home/{{ user['name'] }}/docker/audiobookshelf/config:/config
|
||||
- /home/{{ user['name'] }}/docker/audiobookshelf/metadata:/metadata
|
||||
networks:
|
||||
- name: proxy
|
||||
0
roles/audiobookshelf/vars/main.yml
Normal file
0
roles/audiobookshelf/vars/main.yml
Normal file
Reference in New Issue
Block a user