Add role for automatic configuration of Atric IR-WakeupUSB to playbook

This commit is contained in:
Alexander Grothe
2018-01-01 22:51:57 +01:00
parent 13209045b8
commit 4c96c0a128
4 changed files with 46 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
---
# file roles/autoinstall-atric-usb/tasks/main.yml
- name: install and configure Atric IR-WakeupUSB
block:
- name: apt | install lirc-drv-irman
apt:
name: lirc-drv-irman
- name: write lirc configuration
template:
src: templates/lircd_options.conf.j2
dest: /etc/lirc/lircd_options.conf
- name: enable lircd
systemd:
name: lircd.service
enabled: yes
state: started
masked: no
daemon_reload: yes
when: '"04d8:f844" in usb'