mirror of
https://github.com/davestephens/ansible-nas
synced 2024-12-27 12:03:08 +00:00
3da19e5708
* Rejig of playbook to load roles from ansible-galaxy * Remove ansible-nas role and move tasks to tasks directory * Add InfluxDB/Telegraf/Grafana for monitoring & dashboards * Automatically configure InfluxDB as a datasource in Grafana * Switch to ZFS Docker driver * Add note about switching to overlay2 Docker driver if required
26 lines
653 B
YAML
26 lines
653 B
YAML
---
|
|
- name: Create Sonarr Directories
|
|
file:
|
|
path: "{{ item }}"
|
|
state: directory
|
|
with_items:
|
|
- "{{ sonarr_data_directory }}"
|
|
|
|
- name: Sonarr
|
|
docker_container:
|
|
name: sonarr
|
|
image: linuxserver/sonarr
|
|
pull: true
|
|
volumes:
|
|
- "/etc/localtime:/etc/localtime:ro"
|
|
- "{{ sonarr_tv_directory }}:/tv:rw"
|
|
- "{{ sonarr_download_directory }}/complete:/downloads:rw"
|
|
- "{{ sonarr_data_directory }}:/config:rw"
|
|
- "/etc/timezone:/etc/timezone:ro"
|
|
ports:
|
|
- "8989:8989"
|
|
env:
|
|
PUID: "{{ sonarr_user_id }}"
|
|
PGID: "{{ sonarr_group_id }}"
|
|
restart_policy: unless-stopped
|
|
memory: 1g
|