distrubute ncmpcpp script to audio clients

pull/12/head
Jordan Pryde 6 years ago
parent 14eecc3b71
commit 23d04c50ca
  1. 8
      roles/audio-client/files/ncmpcpp
  2. 5
      roles/audio-client/tasks/main.yml

@ -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

@ -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' }
Loading…
Cancel
Save