mirror of
https://github.com/davestephens/ansible-nas
synced 2024-11-15 08:27:19 +00:00
30 lines
897 B
YAML
30 lines
897 B
YAML
---
|
|
- name: Create Airsonic Directories
|
|
file:
|
|
path: "{{ item }}"
|
|
state: directory
|
|
# mode: 0755
|
|
with_items:
|
|
- "{{ airsonic_data_directory }}/data"
|
|
- "{{ airsonic_data_directory }}/playlists"
|
|
|
|
- name: Airsonic Docker Container
|
|
docker_container:
|
|
name: airsonic
|
|
image: airsonic/airsonic:latest
|
|
pull: true
|
|
volumes:
|
|
- "{{ airsonic_data_directory }}/data:/airsonic/data:rw"
|
|
- "{{ airsonic_data_directory }}/playlists:/airsonic/playlists:rw"
|
|
- "{{ samba_shares_root }}/music:/airsonic/music:rw"
|
|
- "{{ samba_shares_root }}/podcasts:/airsonic/podcasts:rw"
|
|
ports:
|
|
- "4040:4040"
|
|
restart_policy: unless-stopped
|
|
memory: 1g
|
|
labels:
|
|
traefik.backend: "airsonic"
|
|
traefik.frontend.rule: "Host:airsonic.{{ ansible_nas_domain }}"
|
|
traefik.enable: "{{ airsonic_available_externally }}"
|
|
traefik.port: "4040"
|
|
|