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: apt:
name: lirc-drv-irman name: lirc-drv-irman
state: present state: present
tags:
- packages
- name: write lirc configuration - name: write lirc configuration
template: template:
src: templates/lirc_options.conf.j2 src: templates/lirc_options.conf.j2
dest: /etc/lirc/lirc_options.conf dest: /etc/lirc/lirc_options.conf
tags:
- config
- systemd
- name: enable lircd - name: enable lircd, eventlircd, lircd2uinput
systemd: systemd:
name: lircd.service name: '{{ item }}'
enabled: yes enabled: yes
state: started state: started
masked: no masked: no
daemon_reload: yes daemon_reload: yes
with_items:
- eventlircd.service
- eventlircd.soclet
- lircd2uinput.service
- lircd.service
tags:
- systemd
when: '"04d8:f844" in usb' when: '"04d8:f844" in usb'
#+END_SRC #+END_SRC

View File

@ -7,18 +7,30 @@
apt: apt:
name: lirc-drv-irman name: lirc-drv-irman
state: present state: present
tags:
- packages
- name: write lirc configuration - name: write lirc configuration
template: template:
src: templates/lirc_options.conf.j2 src: templates/lirc_options.conf.j2
dest: /etc/lirc/lirc_options.conf dest: /etc/lirc/lirc_options.conf
tags:
- config
- systemd
- name: enable lircd - name: enable lircd, eventlircd, lircd2uinput
systemd: systemd:
name: lircd.service name: '{{ item }}'
enabled: yes enabled: yes
state: started state: started
masked: no masked: no
daemon_reload: yes daemon_reload: yes
with_items:
- eventlircd.service
- eventlircd.soclet
- lircd2uinput.service
- lircd.service
tags:
- systemd
when: '"04d8:f844" in usb' when: '"04d8:f844" in usb'