theforeman.foreman.cp_label filter – Convert strings to Candlepin labels
Note
This filter plugin is part of the theforeman.foreman collection (version 5.8.0-dev).
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 theforeman.foreman.
To use it in a playbook, specify: theforeman.foreman.cp_label.
New in theforeman.foreman 0.1.0
Synopsis
Converts an arbitrary string to a valid Candlepin label
Input
This describes the input of the filter, the value before | theforeman.foreman.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  |