Run apt-daily early to avoid outdated package lists

This commit is contained in:
Andreas B. Mundt 2024-11-08 11:55:42 +01:00
parent c0770ac5d7
commit 1f2e88da6e

View file

@ -99,6 +99,19 @@
[connection]
ethernet.wake-on-lan=64
- name: Prepare directory for apt-daily override
ansible.builtin.file:
path: /etc/systemd/system/apt-daily.timer.d/
recurse: True
state: directory
- name: Run apt update early to avoid outdated package lists
ansible.builtin.copy:
dest: /etc/systemd/system/apt-daily.timer.d/override.conf
content: |
[Timer]
RandomizedDelaySec=30m
- name: Create directory to avoid suspend
ansible.builtin.file:
path: /etc/systemd/sleep.conf.d/