Feat: add minidlna to nas

This commit is contained in:
2022-06-05 09:05:48 +02:00
parent 5b3faafcb1
commit 61d0d56c42
8 changed files with 190 additions and 5 deletions

View File

@@ -0,0 +1,6 @@
---
- name: Debian - Install minidlna
apt:
name:
- minidlna
state: present

View File

@@ -0,0 +1,20 @@
---
# tasks file for nut
- name: Install os-specific packages
include_tasks: "{{ ansible_os_family | lower }}.yml"
- name: Copy minidlna.conf
template:
src: minidlna.j2.conf
dest: /etc/minidlna.conf
owner: root
group: root
mode: 0644
notify: restart minidlna
- name: start and enable minidlna
service:
name: minidlna
enabled: yes
state: started