feat: initial installation role for sonarr

This commit is contained in:
2026-05-24 17:13:32 +02:00
commit f822a513ae
6 changed files with 120 additions and 0 deletions

36
README.md Normal file
View File

@@ -0,0 +1,36 @@
# ansible-role-sonarr
Installs Sonarr on Debian-based distributions using the official apt repository.
The package creates a `sonarr` user by default. Set `sonarr_user` and `sonarr_group`
to use a pre-existing user (must be created by a separate role beforehand).
## Requirements
- Ansible >= 2.14
- Debian or Ubuntu
## Role Variables
| Variable | Default | Description |
|---|---|---|
| `sonarr_user` | `sonarr` | User to run Sonarr as |
| `sonarr_group` | `sonarr` | Group to run Sonarr as |
| `sonarr_apt_repo_release` | `{{ ansible_distribution_release }}` | Debian release codename |
| `sonarr_service_enabled` | `true` | Enable service at boot |
| `sonarr_service_state` | `started` | Service state after installation |
## Example Playbook
```yaml
- hosts: servers
roles:
- role: ansible-role-sonarr
vars:
sonarr_user: sonarr
sonarr_group: sonarr
```
## License
MIT