Skip to content

Commit 80a96a3

Browse files
committed
fix: Set __is_system_running in check mode
Cause: `systemctl is-system-running` was not called in `--check` mode. Consequence: The "Determine if system is booted with systemd" step failed in check mode as the `__is_system_running` variable was not populated. Fix: Force calling `systemctl is-system-running` in check mode. It does not modify the system and the outcome is very influential for what the role does.
1 parent cc555b0 commit 80a96a3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tasks/set_vars.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
command: systemctl is-system-running
2626
register: __is_system_running
2727
changed_when: false
28+
check_mode: false
2829
failed_when: false
2930

3031
- name: Require installed systemd

0 commit comments

Comments
 (0)