redhat.satellite.cp_label filter – Convert strings to Candlepin labels
Note
This filter plugin is part of the redhat.satellite collection (version 4.2.0).
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install redhat.satellite
.
To use it in a playbook, specify: redhat.satellite.cp_label
.
New in redhat.satellite 0.1.0
Synopsis
Converts an arbitrary string to a valid Candlepin label
Input
This describes the input of the filter, the value before | redhat.satellite.cp_label
.
Parameter |
Comments |
---|---|
String that should be converted |
Examples
organization_label: "{{ 'Default Organization' | cp_label }}"
# => 'Default_Organization'
Return Value
Key |
Description |
---|---|
The converted Candlepin label Returned: success |