yavdr-ansible/roles/yavdr-remote/tasks/main.yml

43 lines
893 B
YAML
Raw Normal View History

2017-02-19 13:56:47 +01:00
---
# This role is used to set up the yaVDR remote control configuration.
- name: install yavdr-remote
apt:
2017-02-22 15:27:48 +01:00
name: yavdr-remote
state: present
2017-02-19 13:56:47 +01:00
- name: install lirc
apt:
2017-02-22 15:27:48 +01:00
name: lircd
state: present
2017-02-19 13:56:47 +01:00
when:
2017-02-22 15:27:48 +01:00
- install_lircd is defined and install_lircd
2017-02-19 13:56:47 +01:00
- name: disable lircd.socket and lircd.service (conflict with eventlircd with default configuration)
systemd:
name: '{{ item }}'
enabled: no
state: stopped
masked: yes
with_items:
- lircd.service
- lircd.socket
ignore_errors: yes
2017-02-19 13:56:47 +01:00
- name: install eventlircd
apt:
2017-02-22 15:27:48 +01:00
name: eventlircd
state: present
2017-02-19 13:56:47 +01:00
when:
install_eventlircd is defined and install_eventlircd
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