Add role for automatic configuration of Atric IR-WakeupUSB to playbook
This commit is contained in:
23
roles/autoinstall-atric-usb/tasks/main.yml
Normal file
23
roles/autoinstall-atric-usb/tasks/main.yml
Normal 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'
|
21
roles/autoinstall-atric-usb/templates/lircd_options.conf.j2
Normal file
21
roles/autoinstall-atric-usb/templates/lircd_options.conf.j2
Normal file
@@ -0,0 +1,21 @@
|
||||
{{ ansible_managed_file | comment }}
|
||||
|
||||
[lircd]
|
||||
nodaemon = False
|
||||
driver = irman
|
||||
device = /dev/irman
|
||||
output = /var/run/lirc/lircd0
|
||||
pidfile = /var/run/lirc/lircd0.pid
|
||||
plugindir = /usr/lib/x86_64-linux-gnu/lirc/plugins
|
||||
permission = 666
|
||||
allow-simulate = No
|
||||
repeat-max = 600
|
||||
#loglevel = 6
|
||||
#release = true
|
||||
#release_suffix = _EVUP
|
||||
#logfile = ...
|
||||
#driver-options = ...
|
||||
|
||||
[lircmd]
|
||||
uinput = False
|
||||
nodaemon = False
|
Reference in New Issue
Block a user