Feat: add mpd role and enable it to nas

This commit is contained in:
2022-08-18 21:42:48 +02:00
parent db8a7e758e
commit 5ad74e8f9d
14 changed files with 208 additions and 3 deletions

View File

@@ -0,0 +1,7 @@
---
- name: Debian - Install mpd
apt:
name:
- mpd
- mpc
state: present

13
roles/mpd/tasks/main.yml Normal file
View File

@@ -0,0 +1,13 @@
---
# tasks file for mpd
- name: Install os-specific packages
include_tasks: "{{ ansible_os_family | lower }}.yml"
- name: Copy mpd.conf
template:
src: mpd.conf.j2
dest: /etc/mpd.conf
owner: root
group: root
mode: 0644
notify: restart mpd