bodhi: Use the new way to configure systemd units

systemd has been emitting a warning about how the include
directive is deprecated. This commit switches Bodhi's systemd
override unit file to use the new way.

Signed-off-by: Randy Barlow <randy@electronsweatshop.com>
This commit is contained in:
Randy Barlow 2019-06-06 15:02:15 +00:00
parent 7f5309cf05
commit 5104ab0d04
2 changed files with 12 additions and 3 deletions

View file

@ -1,5 +1,3 @@
.include /usr/lib/systemd/system/fm-consumer@.service
[Service]
User = apache
Group = apache

View file

@ -247,10 +247,21 @@
tags:
- bodhi
- name: Create /etc/systemd/system/fm-consumer@.service.d
file:
state: directory
path: /etc/systemd/system/fm-consumer@.service.d
owner: root
group: root
mode: 0755
tags:
- bodhi
- config
- name: Configure fm-consumer@.service to run as apache
copy:
src: fm-consumer@.service
dest: /etc/systemd/system/fm-consumer@.service
dest: /etc/systemd/system/fm-consumer@.service.d/local.conf
owner: root
group: root
mode: 0644