2023-10-25 22:26:17 +02:00
|
|
|
---
|
|
|
|
- name: gather service facts
|
|
|
|
ansible.builtin.service_facts:
|
|
|
|
|
2024-10-08 17:07:53 +02:00
|
|
|
# wird auch bei Ubuntu 24.04 noch benötigt
|
2023-10-25 22:26:17 +02:00
|
|
|
- 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
|