2018-01-01 22:51:57 +01:00
|
|
|
---
|
|
|
|
# file roles/autoinstall-atric-usb/tasks/main.yml
|
|
|
|
|
|
|
|
- name: install and configure Atric IR-WakeupUSB
|
|
|
|
block:
|
|
|
|
- name: apt | install lirc-drv-irman
|
2018-01-01 22:54:47 +01:00
|
|
|
apt:
|
|
|
|
name: lirc-drv-irman
|
|
|
|
state: present
|
2018-01-05 10:57:31 +01:00
|
|
|
tags:
|
|
|
|
- packages
|
2018-01-01 22:51:57 +01:00
|
|
|
|
|
|
|
- name: write lirc configuration
|
2018-01-01 22:55:59 +01:00
|
|
|
template:
|
2018-01-01 23:02:40 +01:00
|
|
|
src: templates/lirc_options.conf.j2
|
|
|
|
dest: /etc/lirc/lirc_options.conf
|
2018-01-05 10:57:31 +01:00
|
|
|
tags:
|
|
|
|
- config
|
|
|
|
- systemd
|
2018-01-01 22:51:57 +01:00
|
|
|
|
2018-01-05 10:57:31 +01:00
|
|
|
- name: enable lircd, eventlircd, lircd2uinput
|
2018-01-01 22:55:59 +01:00
|
|
|
systemd:
|
2018-01-05 10:57:31 +01:00
|
|
|
name: '{{ item }}'
|
2018-01-01 22:55:59 +01:00
|
|
|
enabled: yes
|
|
|
|
state: started
|
|
|
|
masked: no
|
|
|
|
daemon_reload: yes
|
2018-01-05 10:57:31 +01:00
|
|
|
with_items:
|
|
|
|
- eventlircd.service
|
|
|
|
- eventlircd.soclet
|
|
|
|
- lircd2uinput.service
|
|
|
|
- lircd.service
|
|
|
|
tags:
|
|
|
|
- systemd
|
2018-01-01 22:51:57 +01:00
|
|
|
|
|
|
|
when: '"04d8:f844" in usb'
|