package_absent
Enforce the absence of a package.
⚙️ Compatible targets: Linux
Parameters
| Name | Documentation |
|---|---|
| name | Name of the package. This parameter is required. |
| version | Version of the package or "any" for any version (defaults to "any"). This parameter is optional. |
| architecture | Architecture of the package, can be an architecture name or "default" (defaults to "default"). This parameter is optional. |
| provider | Package provider to use, can be "yum", "apt", "zypper", "zypper_pattern", "slackpkg", "pkg", "ips", "nimclient", "snap" or "default" for system default package manager (defaults to "default"). Choices:
This parameter is optional. |
Outcome conditions
You need to replace ${name} with its actual canonified value.
- ✅ Ok:
package_absent_${name}_ok- ☑️ Already compliant:
package_absent_${name}_kept - 🟨 Repaired:
package_absent_${name}_repaired
- ☑️ Already compliant:
- ❌ Error:
package_absent_${name}_error
Example
method: package_absent
params:
architecture: OPTIONAL_VALUE
provider: default
name: VALUE
version: OPTIONAL_VALUE
Documentation
See package_state for documentation.