homeserver/roles/mgrote.fwupd_settings/tasks/main.yml
mg 31e2a20374 Bugfix: fwupd-refresh.service (#372)
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>
2022-05-27 11:36:06 +02:00

15 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