This role checks the state of systemd units.
Name |
Required |
Example |
Description |
unit |
yes |
firewalld.service |
Name of the systemd unit to check. |
- include_role:
name: noobient.servicecheck
vars:
unit: 'firewalld.service'
Key |
Type |
Example |
Description |
servicecheck.systemd |
boolean |
true |
Indicates whether the host was booted with systemd. If not, all other values will be false as well. |
servicecheck.exists |
boolean |
true |
Indicates whether the given systemd unit exists on the host. |
servicecheck.started |
boolean |
false |
Indicates whether the given system unit is running. |
Platform |
Support |
Status |
Linter |
✅ |
|
AlmaLinux 8 |
✅ |
|
AlmaLinux 9 |
✅ |
|
Fedora 40 |
✅ |
|
Fedora 41 |
✅ |
|
Ubuntu 20.04 |
✅ |
|
Ubuntu 22.04 |
✅ |
|
Ubuntu 24.04 |
✅ |
|