2017-02-19 13:56:47 +01:00
|
|
|
---
|
|
|
|
# This role is used to set up the yaVDR remote control configuration.
|
|
|
|
|
2017-07-15 14:28:23 +02:00
|
|
|
- name: apt | install yavdr-remote
|
2017-02-19 13:56:47 +01:00
|
|
|
apt:
|
2017-02-22 15:27:48 +01:00
|
|
|
name: yavdr-remote
|
|
|
|
state: present
|
2017-02-19 13:56:47 +01:00
|
|
|
|
2017-07-15 14:28:23 +02:00
|
|
|
- name: apt | install eventlircd
|
|
|
|
apt:
|
|
|
|
name: eventlircd
|
|
|
|
state: present
|
|
|
|
|
|
|
|
- name: apt | install lirc
|
2017-02-19 13:56:47 +01:00
|
|
|
apt:
|
2017-07-16 09:27:30 +02:00
|
|
|
name: lirc
|
2017-02-22 15:27:48 +01:00
|
|
|
state: present
|
2017-02-19 13:56:47 +01:00
|
|
|
|
2017-07-16 10:17:08 +02:00
|
|
|
- name: stop, mask and disable lircd.socket, lircd.service and lircd-uinput.service # (the default lirc configuration conflicts with eventlircd)
|
2017-07-08 13:37:35 +02:00
|
|
|
systemd:
|
|
|
|
name: '{{ item }}'
|
|
|
|
enabled: no
|
|
|
|
state: stopped
|
|
|
|
masked: yes
|
|
|
|
with_items:
|
|
|
|
- lircd.service
|
|
|
|
- lircd.socket
|
2017-07-16 10:17:08 +02:00
|
|
|
- lircd-uinput.service
|
2017-07-08 13:37:35 +02:00
|
|
|
ignore_errors: yes
|
|
|
|
|
2017-07-16 09:17:39 +02:00
|
|
|
- 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
|
2017-07-16 09:21:35 +02:00
|
|
|
notify: ['Restart VDR']
|
2017-07-16 09:17:39 +02:00
|
|
|
|
2017-02-19 13:56:47 +01:00
|
|
|
# TODO: upload lircd2uinput package to PPA
|
|
|
|
#- name: install lircd2uinput
|
|
|
|
# tag: install
|
|
|
|
# apt:
|
|
|
|
# name: lircd2uinput
|
|
|
|
# state: present
|
|
|
|
# when:
|
|
|
|
# install_eventlircd is defined and install_eventlircd
|