yavdr-ansible/roles/autoinstall-atric-usb/tasks/main.yml

37 lines
809 B
YAML
Raw Normal View History

---
# 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
tags:
- packages
- name: write lirc configuration
2018-01-01 22:55:59 +01:00
template:
src: templates/lirc_options.conf.j2
dest: /etc/lirc/lirc_options.conf
tags:
- config
- systemd
- name: enable lircd, eventlircd, lircd2uinput
2018-01-01 22:55:59 +01:00
systemd:
name: '{{ item }}'
2018-01-01 22:55:59 +01:00
enabled: yes
state: started
masked: no
daemon_reload: yes
with_items:
2018-01-05 11:00:21 +01:00
- eventlircd.socket
- eventlircd.service
- lircd2uinput.service
- lircd.service
tags:
- systemd
when: '"04d8:f844" in usb'