Skip to content
This repository was archived by the owner on Nov 6, 2025. It is now read-only.

Commit c621890

Browse files
committed
The others didn't need the systemd task, so bringing back only to fedora
1 parent 1923bd0 commit c621890

File tree

3 files changed

+11
-17
lines changed

3 files changed

+11
-17
lines changed

tasks/debian.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
---
2-
- name: Systemd
3-
include_tasks: systemd.yml
4-
52
- name: Apt Update
63
become: yes
74
apt:

tasks/fedora.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
---
22

3-
- name: Systemd
4-
include_tasks: systemd.yml
3+
# https://www.jeffgeerling.com/blog/2020/resolving-fedora-dnf-error-no-such-file-or-directory-varlibdnfrpmdblockpid
4+
- name: Wait for systemd to complete initialization. # noqa 303
5+
command: systemctl is-system-running
6+
register: systemctl_status
7+
until: >
8+
'running' in systemctl_status.stdout or
9+
'degraded' in systemctl_status.stdout
10+
retries: 30
11+
delay: 5
12+
when: ansible_service_mgr == 'systemd'
13+
changed_when: false
514

615
- name: Yum Dependencies
716
become: yes

tasks/systemd.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)