12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- ---
- - hosts: nas
- gather_facts: true
- become: true
- roles:
- - docker
- - cloud-backups
- - statusservices
- - linux-system-roles.metrics
- - linux-system-roles.firewall
- vars_files:
- - "{{ inventory_dir }}/vars/vault.yaml"
- vars:
- status_services_extra:
- - grafana-server
- - smb
- backups: containers
- backups_ignore: /mergerfs
- firewall_ports:
- - 8080/tcp
- - 8081/tcp
- - 9091/tcp
- container_user: "{{ vaulted_media_user }}"
- container_uid: "{{ vaulted_media_uid }}"
- container_group: "{{ vaulted_media_group }}"
- container_gid: "{{ vaulted_media_gid }}"
- global_env_vars:
- - PUID={{ container_uid }}
- - PGID={{ container_gid }}
- container_networks:
- - name: downloaders
- driver: bridge
- subnet: 172.21.10.0/24
- ip_range: 172.21.10.0/24
- gateway: 172.21.10.1
- containers:
- - name: sickchill
- active: true
- image: linuxserver/sickchill
- ports:
- - 8081:8081
- volumes:
- - /opt/sickchill:/config
- - /mergerfs:/mergerfs
- include_global_env_vars: true
- restart: unless-stopped
- networks:
- - downloaders
- - name: transmission
- active: true
- image: linuxserver/transmission
- ports:
- - 9091:9091
- volumes:
- - /opt/transmission:/config
- - /mergerfs/private/processing:/mergerfs/private/processing
- include_global_env_vars: true
- environment:
- - USER={{ vaulted_nas_transmission_username }}
- - PASS={{ vaulted_nas_transmission_password }}
- restart: unless-stopped
- networks:
- - downloaders
- - name: qbittorrent
- active: true
- image: linuxserver/qbittorrent
- ports:
- - 8080:8080
- volumes:
- - /opt/qbittorrent:/config
- - /mergerfs/private/processing/qbittorrent:/mergerfs/private/processing/qbittorent
- include_global_env_vars: true
- environment:
- - WEBUI_PORT=8080
- restart: unless-stopped
- networks:
- - downloaders
- metrics_monitored_hosts: "{{ groups['nas'] }}" #TODO increase to others
- metrics_retention_days: 14
- metrics_graph_service: yes
- metrics_query_service: yes
- firewall:
- - service: grafana
- state: enabled
|