mg
31e2a20374
https://askubuntu.com/questions/1404691/fwupd-refresh-service-failed Co-authored-by: Michael Grote <michael.grote@posteo.de> Reviewed-on: mg/ansible#372 Co-authored-by: mg <michael.grote@posteo.de> Co-committed-by: mg <michael.grote@posteo.de>
14 lines
380 B
YAML
14 lines
380 B
YAML
---
|
|
- name: gather service facts
|
|
service_facts:
|
|
|
|
- name: set DynamicUser=no
|
|
ansible.builtin.blockinfile:
|
|
path: /etc/systemd/system/fwupd-refresh.service.d/override.conf
|
|
block: |
|
|
[Service]
|
|
DynamicUser=no
|
|
create: yes
|
|
when:
|
|
- "not fwupd_dynamic_user and 'fwupd-refresh.service' in services"
|
|
notify: systemctl daemon-reload
|