diff --git a/README.md b/README.md index 3d0f962fdd..7bdaefffc6 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,6 @@ If you have a spare domain name you can configure applications to be accessible * [Beets](https://beets.io/) - media library management system for obsessive music geeks * [Blaze](https://github.com/blenderskool/blaze) - File sharing progressive web app * [Blocky](https://0xerr0r.github.io/blocky/) - Fast and lightweight DNS proxy as ad-blocker -* [Booksonic](https://booksonic.org/) - The selfhosted audiobook server * [Budibase](https://github.com/Budibase/budibase) - Low code platform for building business apps and workflows in minutes * [Calibre](https://calibre-ebook.com) - Calibre is a powerful and easy to use e-book manager. * [Calibre-web](https://github.com/janeczku/calibre-web) - Provides a clean interface for browsing, reading and downloading eBooks using an existing Calibre database. diff --git a/nas.yml b/nas.yml index 7a60b82a5d..1ac319237b 100644 --- a/nas.yml +++ b/nas.yml @@ -121,10 +121,6 @@ tags: - blocky - - role: booksonic - tags: - - booksonic - - role: budibase tags: - budibase diff --git a/roles/booksonic/defaults/main.yml b/roles/booksonic/defaults/main.yml deleted file mode 100644 index 33ba10fdd8..0000000000 --- a/roles/booksonic/defaults/main.yml +++ /dev/null @@ -1,22 +0,0 @@ ---- -booksonic_enabled: false -booksonic_available_externally: false - -# uid / gid -booksonic_user_id: "1000" -booksonic_group_id: "1000" - -# directories -booksonic_data_directory: "{{ docker_home }}/booksonic" -booksonic_audiobooks_directory: "{{ audiobooks_root }}" -booksonic_podcasts_directory: "{{ podcasts_root }}" - -# network -booksonic_port: "4041" -booksonic_hostname: "booksonic" - -# specs -booksonic_memory: 1g - -# docker -booksonic_container_name: booksonic diff --git a/roles/booksonic/molecule/default/molecule.yml b/roles/booksonic/molecule/default/molecule.yml deleted file mode 100644 index 3d8fa26845..0000000000 --- a/roles/booksonic/molecule/default/molecule.yml +++ /dev/null @@ -1,9 +0,0 @@ ---- -provisioner: - inventory: - group_vars: - all: - booksonic_enabled: true - booksonic_data_directory: "/tmp" - playbooks: - prepare: prepare.yml diff --git a/roles/booksonic/molecule/default/prepare.yml b/roles/booksonic/molecule/default/prepare.yml deleted file mode 100644 index e876916ac3..0000000000 --- a/roles/booksonic/molecule/default/prepare.yml +++ /dev/null @@ -1,22 +0,0 @@ ---- -- name: Prepare - hosts: all - tasks: - - name: Install docker python module - ansible.builtin.pip: - name: - - docker - - urllib3<2 - - - name: Create a dummy booksonic onfig directory - ansible.builtin.file: - path: "{{ item }}" - state: directory - recurse: yes - with_items: - - "{{ booksonic_data_directory }}/config" - - - name: Create a dummy booksonic config file - ansible.builtin.file: - path: "{{ booksonic_data_directory }}/config/airsonic.properties" - state: touch diff --git a/roles/booksonic/molecule/default/side_effect.yml b/roles/booksonic/molecule/default/side_effect.yml deleted file mode 100644 index 6bd7170d78..0000000000 --- a/roles/booksonic/molecule/default/side_effect.yml +++ /dev/null @@ -1,10 +0,0 @@ ---- -- name: Stop - hosts: all - become: true - tasks: - - name: "Include {{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }} role" - ansible.builtin.include_role: - name: "{{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') | basename }}" - vars: - booksonic_enabled: false diff --git a/roles/booksonic/molecule/default/verify.yml b/roles/booksonic/molecule/default/verify.yml deleted file mode 100644 index 5ae6539bf8..0000000000 --- a/roles/booksonic/molecule/default/verify.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -- name: Verify - hosts: all - gather_facts: false - tasks: - - name: Include vars - ansible.builtin.include_vars: - file: ../../defaults/main.yml - - - name: Get container state - community.docker.docker_container_info: - name: "{{ booksonic_container_name }}" - register: result - - - name: Check Booksonic is running - ansible.builtin.assert: - that: - - result.container['State']['Status'] == "running" - - result.container['State']['Restarting'] == false diff --git a/roles/booksonic/molecule/default/verify_stopped.yml b/roles/booksonic/molecule/default/verify_stopped.yml deleted file mode 100644 index 4b10baccc6..0000000000 --- a/roles/booksonic/molecule/default/verify_stopped.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -- name: Verify - hosts: all - gather_facts: false - tasks: - - name: Include vars - ansible.builtin.include_vars: - file: ../../defaults/main.yml - - - name: Try and stop and remove Booksonic - community.docker.docker_container: - name: "{{ booksonic_container_name }}" - state: absent - register: result - - - name: Check Booksonic is stopped - ansible.builtin.assert: - that: - - not result.changed diff --git a/roles/booksonic/requirements.yml b/roles/booksonic/requirements.yml deleted file mode 120000 index 9a736435ab..0000000000 --- a/roles/booksonic/requirements.yml +++ /dev/null @@ -1 +0,0 @@ -../../requirements.yml \ No newline at end of file diff --git a/roles/booksonic/tasks/main.yml b/roles/booksonic/tasks/main.yml deleted file mode 100644 index fd86287313..0000000000 --- a/roles/booksonic/tasks/main.yml +++ /dev/null @@ -1,70 +0,0 @@ ---- -- name: Start Booksonic - block: - - name: Create Booksonic Directories - ansible.builtin.file: - path: "{{ item }}" - state: directory - mode: 0755 - with_items: - - "{{ booksonic_data_directory }}/data" - - "{{ booksonic_data_directory }}/playlists" - - - name: Booksonic Docker Container - community.docker.docker_container: - name: "{{ booksonic_container_name }}" - image: linuxserver/booksonic-air:latest - pull: true - volumes: - - "{{ booksonic_data_directory }}/config:/config:rw" - - "{{ booksonic_data_directory }}/playlists:/booksonic/playlists:rw" - - "{{ booksonic_audiobooks_directory }}:/booksonic/audiobooks:rw" - - "{{ booksonic_podcasts_directory }}:/booksonic/podcasts:rw" - ports: - - "{{ booksonic_port }}:4040" - env: - TZ: "{{ ansible_nas_timezone }}" - PUID: "{{ booksonic_user_id }}" - PGID: "{{ booksonic_group_id }}" - restart_policy: unless-stopped - memory: "{{ booksonic_memory }}" - labels: - traefik.enable: "{{ booksonic_available_externally | string }}" - traefik.http.routers.booksonic.rule: "Host(`{{ booksonic_hostname }}.{{ ansible_nas_domain }}`)" - traefik.http.routers.booksonic.tls.certresolver: "letsencrypt" - traefik.http.routers.booksonic.tls.domains[0].main: "{{ ansible_nas_domain }}" - traefik.http.routers.booksonic.tls.domains[0].sans: "*.{{ ansible_nas_domain }}" - traefik.http.services.booksonic.loadbalancer.server.port: "4040" - - - name: Wait for container to get set up - ansible.builtin.pause: - seconds: 30 - - - name: Stop the container - community.docker.docker_container: - name: "{{ booksonic_container_name }}" - image: linuxserver/booksonic-air:latest - state: stopped - tags: molecule-idempotence-notest - - - name: Add server.use-forward-headers to config file - ansible.builtin.lineinfile: - path: "{{ booksonic_data_directory }}/config/airsonic.properties" - line: 'server.use-forward-headers=true' - insertbefore: BOF - - - name: Start the container - community.docker.docker_container: - name: "{{ booksonic_container_name }}" - image: linuxserver/booksonic-air:latest - state: started - tags: molecule-idempotence-notest - when: booksonic_enabled is true - -- name: Stop Booksonic - block: - - name: Stop Booksonic - community.docker.docker_container: - name: "{{ booksonic_container_name }}" - state: absent - when: booksonic_enabled is false diff --git a/website/docs/applications/media-serving/booksonic.md b/website/docs/applications/media-serving/booksonic.md deleted file mode 100644 index 04a2dc806c..0000000000 --- a/website/docs/applications/media-serving/booksonic.md +++ /dev/null @@ -1,21 +0,0 @@ ---- -title: "Booksonic" ---- - -Homepage: [https://booksonic.org/](https://booksonic.org/) - -Stream your audiobooks to any pc or android phone. Most of the functionality is also available on other platforms that have apps for subsonic. - -Fully Open-Source. You can find the code on [GitHub](https://github.com/popeen?tab=repositories&q=booksonic) - -Get the Android app on [Google Play](https://play.google.com/store/apps/details?id=github.popeen.dsub) or build it from [source](https://github.com/popeen/Popeens-DSub) - -## Usage - -Set `booksonic_enabled: true` in your `inventories//group_vars/nas.yml` file. - -The Booksonic web interface can be found at [http://ansible_nas_host_or_ip:4041](http://ansible_nas_host_or_ip:4041). - -## Specific Configuration - -The default username and password is `admin` - you'll need to change this immediately after logging in.