theforeman.foreman.cp_label filter – Convert strings to Candlepin labels

Note

This filter plugin is part of the theforeman.foreman collection (version 5.1.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 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

Input

string / required

String that should be converted

Examples

organization_label: "{{ 'Default Organization' | cp_label }}"
# => 'Default_Organization'

Return Value

Key

Description

Return value

string

The converted Candlepin label

Returned: success

Authors

  • Matthias Dellweg

Hint

Configuration entries for each entry type have a low to high priority order. For example, a variable that is lower in the list will override a variable that is higher up.