distrubute ncmpcpp script to audio clients

This commit is contained in:
Jordan Pryde 2016-07-06 16:45:26 -04:00
parent 14eecc3b71
commit 23d04c50ca
2 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,8 @@
#!/usr/bin/env bash
if [[ `hostname -f` = nullsleep.csclub.uwaterloo.ca ]]; then
MPD_HOST="/var/run/mpd/socket" /usr/bin/ncmpcpp "$@"
else
ssh nullsleep.csclub.uwaterloo.ca -t ncmpcpp "$@"
fi

View File

@ -4,3 +4,8 @@
copy: src={{ item.src }} dest={{ item.dest }}
with_items:
- { src: 'default.pa', dest: '/etc/pulse/default.pa' }
- name: Copy ncmpcpp client script
copy: src={{ item.src }} dest={{ item.dest }} backup=no mode=0755
with_items:
- { src: 'ncmpcpp', dest: '/usr/local/bin/ncmpcpp' }