homeserver/roles/mgrote_fwupd_settings/tasks/main.yml
Michael Grote 7a24089031 fix linter errors (#584)
Reviewed-on: #584
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Co-committed-by: Michael Grote <michael.grote@posteo.de>
2023-10-25 22:26:17 +02:00

17 lines
422 B
YAML

---
- name: gather service facts
ansible.builtin.service_facts:
- name: set DynamicUser=no
ansible.builtin.blockinfile:
path: /etc/systemd/system/fwupd-refresh.service.d/override.conf
block: |
[Service]
DynamicUser=no
create: true
mode: "0644"
owner: root
group: root
when:
- "not fwupd_dynamic_user and 'fwupd-refresh.service' in services"
notify: systemctl daemon-reload