mirror of
https://github.com/davestephens/ansible-nas
synced 2024-11-15 16:28:03 +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
27 lines
No EOL
769 B
YAML
27 lines
No EOL
769 B
YAML
---
|
|
- name: Create Couchpotato Directories
|
|
file:
|
|
path: "{{ item }}"
|
|
state: directory
|
|
# mode: 0755
|
|
with_items:
|
|
- "{{ docker_home }}/couchpotato/config"
|
|
|
|
- name: Couchpotato Docker Container
|
|
docker_container:
|
|
name: couchpotato
|
|
image: linuxserver/couchpotato
|
|
pull: true
|
|
volumes:
|
|
- "{{ couchpotato_config_directory }}:/config:rw"
|
|
- "{{ couchpotato_downloads_directory }}/completed:/downloads:rw"
|
|
- "{{ couchpotato_movies_directory }}:/movies:rw"
|
|
- "{{ couchpotato_torrents_directory }}:/torrents:rw"
|
|
- "/etc/timezone:/etc/timezone:ro"
|
|
ports:
|
|
- "5050:5050"
|
|
env:
|
|
PUID: "{{ couchpotato_user_id }}"
|
|
PGID: "{{ couchpotato_group_id }}"
|
|
restart_policy: unless-stopped
|
|
memory: 1g |