noobient.servicecheck
noobient.servicecheck
Synopsys
This role checks the state of systemd units.
Parameters
| Name | Required | Example | Description |
|---|---|---|---|
unit |
yes | firewalld.service |
Name of the systemd unit to check. |
Examples
- include_role:
name: noobient.servicecheck
vars:
unit: 'firewalld.service'
Return Values
| 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. |
Support
| Platform | Support | Status |
|---|---|---|
| Linter | ✅ | |
| AlmaLinux 8 | ✅ | |
| AlmaLinux 9 | ✅ | |
| Fedora 38 | ✅ | |
| Fedora 39 | ✅ | |
| Ubuntu 18.04 | ✅ | |
| Ubuntu 20.04 | ✅ | |
| Ubuntu 22.04 | ✅ |
Install
ansible-galaxy install noobient.servicecheckLicense
mit
Downloads
544
Owner
