Commit e88b15e
fix: Make disabling of conflicting services work in container environments
Cause: The `firewall_disable_conflicting_services` option did not work
in container build environments, as Ansible's `service_facts` completely
fail there.
Consequence: Running the role with that option during e.g. a bootc image
build errored out with "Failed to find any services".
Fix: The role only actually needs to know about the status of a small
list of known conflicting services. Query these with `systemctl is-enabled`
which works fine in container builds.
Drop the obsolete `service_mgr == 'systemd'` check. All our supported platforms
run systemd, and we don't test anything else.1 parent d2b633e commit e88b15e
1 file changed
+10
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
7 | 12 | | |
8 | 13 | | |
9 | 14 | | |
10 | 15 | | |
11 | | - | |
| 16 | + | |
12 | 17 | | |
13 | 18 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
| 19 | + | |
18 | 20 | | |
19 | 21 | | |
20 | | - | |
21 | | - | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
0 commit comments