configure systemd properties for all needed service- and socket-Units

also add more tags to the role
This commit is contained in:
Alexander Grothe 2018-01-05 10:57:31 +01:00
parent 9f42da23f6
commit 3006830cc1
3 changed files with 651 additions and 489 deletions

File diff suppressed because it is too large Load Diff

View File

@ -3558,19 +3558,31 @@ dependencies:
apt:
name: lirc-drv-irman
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
- name: enable lircd, eventlircd, lircd2uinput
systemd:
name: lircd.service
name: '{{ item }}'
enabled: yes
state: started
masked: no
daemon_reload: yes
with_items:
- eventlircd.service
- eventlircd.soclet
- lircd2uinput.service
- lircd.service
tags:
- systemd
when: '"04d8:f844" in usb'
#+END_SRC

View File

@ -7,18 +7,30 @@
apt:
name: lirc-drv-irman
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
- name: enable lircd, eventlircd, lircd2uinput
systemd:
name: lircd.service
name: '{{ item }}'
enabled: yes
state: started
masked: no
daemon_reload: yes
with_items:
- eventlircd.service
- eventlircd.soclet
- lircd2uinput.service
- lircd.service
tags:
- systemd
when: '"04d8:f844" in usb'