44 lines
998 B
YAML
44 lines
998 B
YAML
---
|
|
# This role is used to set up the yaVDR remote control configuration.
|
|
|
|
- name: apt | install yavdr-remote
|
|
apt:
|
|
name: yavdr-remote
|
|
state: present
|
|
|
|
- name: apt | install eventlircd
|
|
apt:
|
|
name: eventlircd
|
|
state: present
|
|
|
|
- name: apt | install lirc
|
|
apt:
|
|
name: lircd
|
|
state: present
|
|
|
|
- name: stop, mask and disable lircd.socket and lircd.service # (the default lirc configuration conflicts with eventlircd)
|
|
systemd:
|
|
name: '{{ item }}'
|
|
enabled: no
|
|
state: stopped
|
|
masked: yes
|
|
with_items:
|
|
- lircd.service
|
|
- 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
|
|
# apt:
|
|
# name: lircd2uinput
|
|
# state: present
|
|
# when:
|
|
# install_eventlircd is defined and install_eventlircd
|