Run apt-daily early to avoid outdated package lists
This commit is contained in:
parent
c0770ac5d7
commit
1f2e88da6e
1 changed files with 13 additions and 0 deletions
|
@ -99,6 +99,19 @@
|
||||||
[connection]
|
[connection]
|
||||||
ethernet.wake-on-lan=64
|
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
|
- name: Create directory to avoid suspend
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: /etc/systemd/sleep.conf.d/
|
path: /etc/systemd/sleep.conf.d/
|
||||||
|
|
Loading…
Add table
Reference in a new issue