Airsonic-Advanced¶
| Description / name | Input element |
|---|---|
| Your domain name |
Overview¶
Airsonic-Advanced is a more modern implementation of the Airsonic fork with several key performance and feature enhancements. It adds and supersedes several features in Airsonic.
Deployment¶
sb install sandbox-airsonic
Usage¶
Visit https://airsonic.iYOUR_DOMAIN_NAMEi.
Role Defaults¶
Use the Inventory to customize variables. (1)
-
Example override
airsonic_name: "custom_value"Avoid overriding variables ending in
_defaultWhen overriding variables that end in
_default(likeairsonic_docker_envs_default), you replace the entire default configuration. Future updates that add new default values will not be applied to your setup, potentially breaking functionality.Instead, use the corresponding
_customvariable (likeairsonic_docker_envs_custom) to add your changes. Custom values are merged with defaults, ensuring you receive updates.
airsonic_name
# Type: string
airsonic_name: airsonic
airsonic_role_web_subdomain
# Type: string
airsonic_role_web_subdomain: "{{ airsonic_name }}"
airsonic_role_web_domain
# Type: string
airsonic_role_web_domain: "{{ user.domain }}"
airsonic_role_web_port
# Type: string
airsonic_role_web_port: "4040"
airsonic_role_web_url
# Type: string
airsonic_role_web_url: "{{ 'https://' + (lookup('role_var', '_web_subdomain', role='airsonic') + '.' + lookup('role_var', '_web_domain', role='airsonic')
if (lookup('role_var', '_web_subdomain', role='airsonic') | length > 0)
else lookup('role_var', '_web_domain', role='airsonic')) }}"
airsonic_role_dns_record
# Type: string
airsonic_role_dns_record: "{{ lookup('role_var', '_web_subdomain', role='airsonic') }}"
airsonic_role_dns_zone
# Type: string
airsonic_role_dns_zone: "{{ lookup('role_var', '_web_domain', role='airsonic') }}"
airsonic_role_dns_proxy
# Type: bool (true/false)
airsonic_role_dns_proxy: "{{ dns_proxied }}"
airsonic_role_traefik_sso_middleware
# Type: string
airsonic_role_traefik_sso_middleware: ""
airsonic_role_traefik_middleware_default
# Type: string
airsonic_role_traefik_middleware_default: "{{ traefik_default_middleware }}"
airsonic_role_traefik_middleware_custom
# Type: string
airsonic_role_traefik_middleware_custom: ""
airsonic_role_traefik_certresolver
# Type: string
airsonic_role_traefik_certresolver: "{{ traefik_default_certresolver }}"
airsonic_role_traefik_enabled
# Type: bool (true/false)
airsonic_role_traefik_enabled: true
airsonic_role_traefik_api_enabled
# Type: bool (true/false)
airsonic_role_traefik_api_enabled: false
airsonic_role_traefik_api_endpoint
# Type: string
airsonic_role_traefik_api_endpoint: ""
Container
airsonic_role_docker_container
# Type: string
airsonic_role_docker_container: "{{ airsonic_name }}"
Image
airsonic_role_docker_image_pull
# Type: bool (true/false)
airsonic_role_docker_image_pull: true
airsonic_role_docker_image_repo
# Type: string
airsonic_role_docker_image_repo: "lscr.io/linuxserver/airsonic-advanced"
airsonic_role_docker_image_tag
# Type: string
airsonic_role_docker_image_tag: "latest"
airsonic_role_docker_image
# Type: string
airsonic_role_docker_image: "{{ lookup('role_var', '_docker_image_repo', role='airsonic') }}:{{ lookup('role_var', '_docker_image_tag', role='airsonic') }}"
Envs
airsonic_role_docker_envs_default
# Type: dict
airsonic_role_docker_envs_default:
PUID: "{{ uid }}"
PGID: "{{ gid }}"
TZ: "{{ tz }}"
JAVA_OPTS: "-Dserver.use-forward-headers=true"
airsonic_role_docker_envs_custom
# Type: dict
airsonic_role_docker_envs_custom: {}
Volumes
airsonic_role_docker_volumes_default
# Type: list
airsonic_role_docker_volumes_default:
- "{{ lookup('role_var', '_paths_location', role='airsonic') }}:/config"
airsonic_role_docker_volumes_custom
# Type: list
airsonic_role_docker_volumes_custom: []
Hostname
airsonic_role_docker_hostname
# Type: string
airsonic_role_docker_hostname: "{{ airsonic_name }}"
Networks
airsonic_role_docker_networks_alias
# Type: string
airsonic_role_docker_networks_alias: "{{ airsonic_name }}"
airsonic_role_docker_networks_default
# Type: list
airsonic_role_docker_networks_default: []
airsonic_role_docker_networks_custom
# Type: list
airsonic_role_docker_networks_custom: []
Restart Policy
airsonic_role_docker_restart_policy
# Type: string
airsonic_role_docker_restart_policy: unless-stopped
State
airsonic_role_docker_state
# Type: string
airsonic_role_docker_state: started
The following advanced options are available via create_docker_container but are not defined in the role. See: docker_container module
Resource Limits
airsonic_role_docker_blkio_weight
# Type: int
airsonic_role_docker_blkio_weight:
airsonic_role_docker_cpu_period
# Type: int
airsonic_role_docker_cpu_period:
airsonic_role_docker_cpu_quota
# Type: int
airsonic_role_docker_cpu_quota:
airsonic_role_docker_cpu_shares
# Type: int
airsonic_role_docker_cpu_shares:
airsonic_role_docker_cpus
# Type: string
airsonic_role_docker_cpus:
airsonic_role_docker_cpuset_cpus
# Type: string
airsonic_role_docker_cpuset_cpus:
airsonic_role_docker_cpuset_mems
# Type: string
airsonic_role_docker_cpuset_mems:
airsonic_role_docker_kernel_memory
# Type: string
airsonic_role_docker_kernel_memory:
airsonic_role_docker_memory
# Type: string
airsonic_role_docker_memory:
airsonic_role_docker_memory_reservation
# Type: string
airsonic_role_docker_memory_reservation:
airsonic_role_docker_memory_swap
# Type: string
airsonic_role_docker_memory_swap:
airsonic_role_docker_memory_swappiness
# Type: int
airsonic_role_docker_memory_swappiness:
airsonic_role_docker_shm_size
# Type: string
airsonic_role_docker_shm_size:
Security & Devices
airsonic_role_docker_cap_drop
# Type: list
airsonic_role_docker_cap_drop:
airsonic_role_docker_cgroupns_mode
# Type: string
airsonic_role_docker_cgroupns_mode:
airsonic_role_docker_device_cgroup_rules
# Type: list
airsonic_role_docker_device_cgroup_rules:
airsonic_role_docker_device_read_bps
# Type: list
airsonic_role_docker_device_read_bps:
airsonic_role_docker_device_read_iops
# Type: list
airsonic_role_docker_device_read_iops:
airsonic_role_docker_device_requests
# Type: list
airsonic_role_docker_device_requests:
airsonic_role_docker_device_write_bps
# Type: list
airsonic_role_docker_device_write_bps:
airsonic_role_docker_device_write_iops
# Type: list
airsonic_role_docker_device_write_iops:
airsonic_role_docker_devices
# Type: list
airsonic_role_docker_devices:
airsonic_role_docker_devices_default
# Type: string
airsonic_role_docker_devices_default:
airsonic_role_docker_groups
# Type: list
airsonic_role_docker_groups:
airsonic_role_docker_privileged
# Type: bool (true/false)
airsonic_role_docker_privileged:
airsonic_role_docker_security_opts
# Type: list
airsonic_role_docker_security_opts:
airsonic_role_docker_user
# Type: string
airsonic_role_docker_user:
airsonic_role_docker_userns_mode
# Type: string
airsonic_role_docker_userns_mode:
Networking
airsonic_role_docker_dns_opts
# Type: list
airsonic_role_docker_dns_opts:
airsonic_role_docker_dns_search_domains
# Type: list
airsonic_role_docker_dns_search_domains:
airsonic_role_docker_dns_servers
# Type: list
airsonic_role_docker_dns_servers:
airsonic_role_docker_domainname
# Type: string
airsonic_role_docker_domainname:
airsonic_role_docker_exposed_ports
# Type: list
airsonic_role_docker_exposed_ports:
airsonic_role_docker_hosts
# Type: dict
airsonic_role_docker_hosts:
airsonic_role_docker_hosts_use_common
# Type: bool (true/false)
airsonic_role_docker_hosts_use_common:
airsonic_role_docker_ipc_mode
# Type: string
airsonic_role_docker_ipc_mode:
airsonic_role_docker_links
# Type: list
airsonic_role_docker_links:
airsonic_role_docker_network_mode
# Type: string
airsonic_role_docker_network_mode:
airsonic_role_docker_pid_mode
# Type: string
airsonic_role_docker_pid_mode:
airsonic_role_docker_ports
# Type: list
airsonic_role_docker_ports:
airsonic_role_docker_uts
# Type: string
airsonic_role_docker_uts:
Storage
airsonic_role_docker_keep_volumes
# Type: bool (true/false)
airsonic_role_docker_keep_volumes:
airsonic_role_docker_mounts
# Type: list
airsonic_role_docker_mounts:
airsonic_role_docker_storage_opts
# Type: dict
airsonic_role_docker_storage_opts:
airsonic_role_docker_tmpfs
# Type: list
airsonic_role_docker_tmpfs:
airsonic_role_docker_volume_driver
# Type: string
airsonic_role_docker_volume_driver:
airsonic_role_docker_volumes_from
# Type: list
airsonic_role_docker_volumes_from:
airsonic_role_docker_volumes_global
# Type: bool (true/false)
airsonic_role_docker_volumes_global:
airsonic_role_docker_working_dir
# Type: string
airsonic_role_docker_working_dir:
Monitoring & Lifecycle
airsonic_role_docker_auto_remove
# Type: bool (true/false)
airsonic_role_docker_auto_remove:
airsonic_role_docker_cleanup
# Type: bool (true/false)
airsonic_role_docker_cleanup:
airsonic_role_docker_force_kill
# Type: string
airsonic_role_docker_force_kill:
airsonic_role_docker_healthcheck
# Type: dict
airsonic_role_docker_healthcheck:
airsonic_role_docker_healthy_wait_timeout
# Type: int
airsonic_role_docker_healthy_wait_timeout:
airsonic_role_docker_init
# Type: bool (true/false)
airsonic_role_docker_init:
airsonic_role_docker_kill_signal
# Type: string
airsonic_role_docker_kill_signal:
airsonic_role_docker_log_driver
# Type: string
airsonic_role_docker_log_driver:
airsonic_role_docker_log_options
# Type: dict
airsonic_role_docker_log_options:
airsonic_role_docker_oom_killer
# Type: bool (true/false)
airsonic_role_docker_oom_killer:
airsonic_role_docker_oom_score_adj
# Type: int
airsonic_role_docker_oom_score_adj:
airsonic_role_docker_output_logs
# Type: bool (true/false)
airsonic_role_docker_output_logs:
airsonic_role_docker_paused
# Type: bool (true/false)
airsonic_role_docker_paused:
airsonic_role_docker_recreate
# Type: bool (true/false)
airsonic_role_docker_recreate:
airsonic_role_docker_restart_retries
# Type: int
airsonic_role_docker_restart_retries:
airsonic_role_docker_stop_timeout
# Type: int
airsonic_role_docker_stop_timeout:
Other Options
airsonic_role_docker_capabilities
# Type: list
airsonic_role_docker_capabilities:
airsonic_role_docker_cgroup_parent
# Type: string
airsonic_role_docker_cgroup_parent:
airsonic_role_docker_commands
# Type: list
airsonic_role_docker_commands:
airsonic_role_docker_create_timeout
# Type: int
airsonic_role_docker_create_timeout:
airsonic_role_docker_entrypoint
# Type: string
airsonic_role_docker_entrypoint:
airsonic_role_docker_env_file
# Type: string
airsonic_role_docker_env_file:
airsonic_role_docker_labels
# Type: dict
airsonic_role_docker_labels:
airsonic_role_docker_labels_use_common
# Type: bool (true/false)
airsonic_role_docker_labels_use_common:
airsonic_role_docker_read_only
# Type: bool (true/false)
airsonic_role_docker_read_only:
airsonic_role_docker_runtime
# Type: string
airsonic_role_docker_runtime:
airsonic_role_docker_sysctls
# Type: list
airsonic_role_docker_sysctls:
airsonic_role_docker_ulimits
# Type: list
airsonic_role_docker_ulimits:
airsonic_role_autoheal_enabled
# Enable or disable Autoheal monitoring for the container created when deploying
# Type: bool (true/false)
airsonic_role_autoheal_enabled: true
airsonic_role_depends_on
# List of container dependencies that must be running before the container start
# Type: string
airsonic_role_depends_on: ""
airsonic_role_depends_on_delay
# Delay in seconds before starting the container after dependencies are ready
# Type: string (quoted number)
airsonic_role_depends_on_delay: "0"
airsonic_role_depends_on_healthchecks
# Enable healthcheck waiting for container dependencies
# Type: string ("true"/"false")
airsonic_role_depends_on_healthchecks:
airsonic_role_diun_enabled
# Enable or disable Diun update notifications for the container created when deploying
# Type: bool (true/false)
airsonic_role_diun_enabled: true
airsonic_role_dns_enabled
# Enable or disable automatic DNS record creation for the container
# Type: bool (true/false)
airsonic_role_dns_enabled: true
airsonic_role_docker_controller
# Enable or disable Saltbox Docker Controller management for the container
# Type: bool (true/false)
airsonic_role_docker_controller: true
airsonic_role_docker_image_repo
# Type: string
airsonic_role_docker_image_repo:
airsonic_role_docker_image_tag
# Type: string
airsonic_role_docker_image_tag:
airsonic_role_docker_volumes_download
# Type: bool (true/false)
airsonic_role_docker_volumes_download:
airsonic_role_paths_location
# Type: string
airsonic_role_paths_location:
airsonic_role_themepark_addons
# Type: string
airsonic_role_themepark_addons:
airsonic_role_themepark_app
# Type: string
airsonic_role_themepark_app:
airsonic_role_themepark_theme
# Type: string
airsonic_role_themepark_theme:
airsonic_role_traefik_api_endpoint
# Type: dict/omit
airsonic_role_traefik_api_endpoint:
airsonic_role_traefik_api_middleware
# Type: string
airsonic_role_traefik_api_middleware:
airsonic_role_traefik_api_middleware_http
# Type: string
airsonic_role_traefik_api_middleware_http:
airsonic_role_traefik_autodetect_enabled
# Enable Traefik autodetect middleware for the container
# Type: bool (true/false)
airsonic_role_traefik_autodetect_enabled: false
airsonic_role_traefik_certresolver
# Type: string
airsonic_role_traefik_certresolver:
airsonic_role_traefik_crowdsec_enabled
# Enable CrowdSec middleware for the container
# Type: bool (true/false)
airsonic_role_traefik_crowdsec_enabled: false
airsonic_role_traefik_error_pages_enabled
# Enable custom error pages middleware for the container
# Type: bool (true/false)
airsonic_role_traefik_error_pages_enabled: false
airsonic_role_traefik_gzip_enabled
# Enable gzip compression middleware for the container
# Type: bool (true/false)
airsonic_role_traefik_gzip_enabled: false
airsonic_role_traefik_middleware_http
# Type: string
airsonic_role_traefik_middleware_http:
airsonic_role_traefik_middleware_http_api_insecure
# Type: bool (true/false)
airsonic_role_traefik_middleware_http_api_insecure:
airsonic_role_traefik_middleware_http_insecure
# Type: bool (true/false)
airsonic_role_traefik_middleware_http_insecure:
airsonic_role_traefik_priority
# Type: string
airsonic_role_traefik_priority:
airsonic_role_traefik_robot_enabled
# Enable robots.txt middleware for the container
# Type: bool (true/false)
airsonic_role_traefik_robot_enabled: true
airsonic_role_traefik_tailscale_enabled
# Enable Tailscale-specific Traefik configuration for the container
# Type: bool (true/false)
airsonic_role_traefik_tailscale_enabled: false
airsonic_role_traefik_wildcard_enabled
# Enable wildcard certificate for the container
# Type: bool (true/false)
airsonic_role_traefik_wildcard_enabled: true
airsonic_role_web_domain
# Type: string
airsonic_role_web_domain:
airsonic_role_web_fqdn_override
# Override the Traefik fully qualified domain name (FQDN) for the container
# Type: list
airsonic_role_web_fqdn_override:
Example Override
airsonic_role_web_fqdn_override:
- "{{ traefik_host }}"
- "airsonic2.{{ user.domain }}"
- "airsonic.otherdomain.tld"
Note: Include {{ traefik_host }} to preserve the default FQDN alongside your custom entries
airsonic_role_web_host_override
# Override the Traefik web host configuration for the container
# Type: string
airsonic_role_web_host_override:
Example Override
airsonic_role_web_host_override: "Host(`{{ traefik_host }}`) || Host(`{{ 'airsonic2.' + user.domain }}`)"
Note: Use {{ traefik_host }} to include the default host configuration in your custom rule
airsonic_role_web_http_port
# Type: string (quoted number)
airsonic_role_web_http_port:
airsonic_role_web_http_scheme
# Type: string ("http"/"https")
airsonic_role_web_http_scheme:
airsonic_role_web_http_serverstransport
# Type: dict/omit
airsonic_role_web_http_serverstransport:
airsonic_role_web_scheme
# URL scheme to use for web access to the container
# Type: string ("http"/"https")
airsonic_role_web_scheme:
airsonic_role_web_serverstransport
# Type: dict/omit
airsonic_role_web_serverstransport:
airsonic_role_web_subdomain
# Type: string
airsonic_role_web_subdomain: