Let yavdr-remote always install eventlircd, activate lircd for vdr

This commit is contained in:
Alexander Grothe
2017-07-16 09:17:39 +02:00
parent b6dfc4e737
commit 8133f7e786
3 changed files with 16 additions and 9 deletions

View File

@@ -10,15 +10,11 @@
apt:
name: eventlircd
state: present
when:
install_eventlircd is defined and install_eventlircd
- name: apt | install lirc
apt:
name: lircd
state: present
when:
- install_lircd is defined and install_lircd
- name: stop, mask and disable lircd.socket and lircd.service # (the default lirc configuration conflicts with eventlircd)
systemd:
@@ -31,6 +27,12 @@
- lircd.socket
ignore_errors: yes
- name: configure vdr to read from a lircd-compatible socket
template:
src: templates/03-vdr-lirc.conf.j2
dest: /etc/vdr/conf.d/03-vdr-lirc.conf
notify: notify: ['Restart VDR']
# TODO: upload lircd2uinput package to PPA
#- name: install lircd2uinput
# tag: install