2018-01-16 09:05:08 +01:00
|
|
|
---
|
|
|
|
# file roles/autoinstall-atric-usb/tasks/main.yml
|
|
|
|
|
|
|
|
- name: install and configure Atric IR-WakeupUSB
|
|
|
|
block:
|
|
|
|
- name: apt | install lirc-drv-yausbir
|
|
|
|
apt:
|
|
|
|
name: lirc-drv-yausbir
|
|
|
|
state: present
|
|
|
|
tags:
|
|
|
|
- packages
|
|
|
|
|
|
|
|
- name: write lirc configuration
|
|
|
|
template:
|
|
|
|
src: templates/lirc_options.conf.j2
|
|
|
|
dest: /etc/lirc/lirc_options.conf
|
|
|
|
tags:
|
|
|
|
- config
|
|
|
|
- systemd
|
|
|
|
|
|
|
|
- name: enable lircd, eventlircd, lircd2uinput
|
|
|
|
systemd:
|
|
|
|
name: '{{ item }}'
|
|
|
|
enabled: yes
|
|
|
|
state: started
|
|
|
|
masked: no
|
|
|
|
daemon_reload: yes
|
|
|
|
with_items:
|
|
|
|
- eventlircd.service
|
|
|
|
- lircd2uinput.service
|
|
|
|
- lircd.service
|
|
|
|
tags:
|
|
|
|
- systemd
|
|
|
|
|
2018-01-16 09:12:11 +01:00
|
|
|
when: '"10c4:876c" in usb'
|