1
0
Fork 0
mirror of https://github.com/mdlayher/homelab.git synced 2024-12-14 11:47:32 +00:00

mpdsubd: remove

This commit is contained in:
Matt Layher 2018-01-10 15:14:28 -05:00
parent 817732336c
commit 8c294ab1a8
No known key found for this signature in database
GPG key ID: 77BFE531397EDE94
4 changed files with 0 additions and 112 deletions

View file

@ -1,72 +0,0 @@
---
- name: download and checksum mpdsubd {{ mpdsubd_version }} binary
tags:
- mpdsubd
get_url:
url: "{{ mpdsubd_url }}"
dest: "/tmp/mpdsubd"
checksum: "sha256:{{ mpdsubd_sha256 }}"
- name: create mpdsubd user
tags:
- mpdsubd
user:
name: mpdsubd
shell: "/bin/false"
comment: "mpdsubd service user"
- name: check if mpdsubd service exists
tags:
- mpdsubd
stat:
path: "/etc/systemd/system/mpdsubd.service"
register: checked
- name: stop mpdsubd service if it exists
tags:
- mpdsubd
when: checked.stat.exists
service:
name: mpdsubd
state: stopped
- name: copy mpdsubd binary to /usr/local/bin
tags:
- mpdsubd
command: "cp /tmp/mpdsubd /usr/local/bin/"
- name: set permissions on mpdsubd binary
tags:
- mpdsubd
file:
path: "/usr/local/bin/mpdsubd"
owner: mpdsubd
group: mpdsubd
mode: 0755
- name: create mpdsubd systemd unit
tags:
- mpdsubd
template:
src: mpdsubd.service.j2
dest: "/etc/systemd/system/mpdsubd.service"
- name: reload systemd configurations
tags:
- mpdsubd
command: "systemctl daemon-reload"
- name: start mpdsubd service
tags:
- mpdsubd
service:
name: mpdsubd
state: started
enabled: yes
- name: remove temporary files
tags:
- mpdsubd
file:
path: "/tmp/mpdsubd"
state: absent

View file

@ -1,18 +0,0 @@
# {{ ansible_managed }}
[Unit]
Description=mpdsubd MPD to Subsonic API bridge
Documentation=https://github.com/mdlayher/mpdsubd
Wants=network-online.target
After=network-online.target mpd.service
[Service]
User=mpdsubd
Group=mpdsubd
Type=simple
ExecStart=/usr/local/bin/mpdsubd \
-mpd.music.dir {{ mpdsubd_music_dir }} \
-user {{ mpdsubd_subsonic_user }} \
-pass {{ mpdsubd_subsonic_pass }}
[Install]
WantedBy=multi-user.target

View file

@ -1,21 +0,0 @@
$ANSIBLE_VAULT;1.1;AES256
37616166346434623638326561353464396464313033383032616533666632353538353734393930
6139333538376435663731653134333362353838666235380a356163336635333764393838663539
65346531616633346662313764616338336530353365306131303664326139613663333066326631
3739303938303837650a343735303464336532623964363439323965666438663834343435623161
32663465386139383039373835383861653538646565653531623933346139646231633330616234
64363864636436643234346461386632623166623932336430376631383639626464643938356565
63373939313062656338323363386263363566393033656562653735393166623232336564333032
30643432336464313732353132623934616630653533373662323435313164396137346438643037
38336338663462666631336232633239323265373665343434313464346539663133663530306532
34633862643736653234393266666332373636353763626236313734633930343464356234323335
34616139396336336630383561333763323137616131356337303331643334663332353866323861
30633039646665656538326539393366393630373661313839373334313138396637396565336661
66383337663466366431313435383133346261626236323336393938663431663533633133636263
39313363626137376235373862366635323663376364306231336433653935396164323632353066
32376633633165383566613264326136356639396132633232613931363034373635326232386334
37623737343330363437383239313533366433386663303834363134313862323934343338343766
31663139353736663264346665383935383534646334393664373064656238336266323861326362
35623130663538346164663137363138633631643664356332396430393839623065636535323937
37643133613666633135393636616432636334616138333961646265653037613334336265663435
66663165313261373832

View file

@ -12,7 +12,6 @@
- hdhomerun_exporter
- kvm
- mpd
- mpdsubd
- node_exporter
- plex
- prometheus