Skip to content

Commit

Permalink
Calibre/calibre-web tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
davestephens committed Mar 14, 2024
1 parent 29a888d commit 5742d25
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 75 deletions.
4 changes: 2 additions & 2 deletions roles/calibre/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ calibre_enabled: false
calibre_available_externally: "false"

# uid / gid
calibre_user_id: "1000"
calibre_group_id: "1000"
calibre_user_id: "0"
calibre_group_id: "0"

# directories
calibre_data_directory: "{{ docker_home }}/calibre"
Expand Down
24 changes: 0 additions & 24 deletions roles/calibre/docs/calibre.md

This file was deleted.

37 changes: 0 additions & 37 deletions roles/calibreweb/docs/calibre-web.md

This file was deleted.

1 change: 1 addition & 0 deletions roles/calibreweb/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
state: directory
with_items:
- "{{ calibreweb_data_directory }}/config"
- "{{ calibreweb_data_directory }}/data"

- name: Calibre-web Docker Container

Check failure on line 12 in roles/calibreweb/tasks/main.yml

View workflow job for this annotation

GitHub Actions / Lint

fqcn[action]

Use FQCN for module actions, such `community.docker.docker_container`.
docker_container:
Expand Down
14 changes: 2 additions & 12 deletions website/docs/applications/media-serving/calibre-web.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: "Calibre-web"
---

Homepage: <https://github.com/janeczku/calibre-web>
Homepage: [https://github.com/janeczku/calibre-web](https://github.com/janeczku/calibre-web)

Calibre-Web is a web app providing a clean interface for browsing, reading and downloading eBooks using an existing Calibre database.

Expand All @@ -12,7 +12,7 @@ Set `calibreweb_enabled: true` in your `inventories/<your_inventory>/nas.yml` fi

## Specific Configuration

Requires Calibre ebook management program. Available for download [here](https://calibre-ebook.com/download).
Requires Calibre to be set up - `calibre_enabled: true`

### Admin login

Expand All @@ -27,13 +27,3 @@ If you do not need eBook conversion you can disable it to save resources by sett
- Conversion disabled: `calibreweb_ebook_conversion: ""`

You can target just Calibre by appending `-t calibre` to your `ansible-playbook` command.

## Use with Calibre

Ansible-NAS add [../calibre](Calibre) long after Calibre-web. To allow Calibre-web direct access to the Calibre database, both applications can share a Docker data directory. To do so, include the following in your inventory `nas.yml`:

```yml
calibreweb_data_directory: "{{ docker_home }}/calibre"
```
In this case, the Calibre Database Directory is `/data/Calibre Library`.

0 comments on commit 5742d25

Please sign in to comment.