.. Document meta
:orphan:
.. |antsibull-internal-nbsp| unicode:: 0xA0
:trim:
.. meta::
:antsibull-docs: 2.16.3
.. Anchors
.. _ansible_collections.redhat.satellite.cp_label_filter:
.. Anchors: short name for ansible.builtin
.. Title
redhat.satellite.cp_label filter -- Convert strings to Candlepin labels
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
.. Collection note
.. note::
This filter plugin is part of the `redhat.satellite collection `_ (version 5.3.0).
It is not included in ``ansible-core``.
To check whether it is installed, run :code:`ansible-galaxy collection list`.
To install it, use: :code:`ansible-galaxy collection install redhat.satellite`.
To use it in a playbook, specify: :code:`redhat.satellite.cp_label`.
.. version_added
.. rst-class:: ansible-version-added
New in redhat.satellite 0.1.0
.. contents::
:local:
:depth: 1
.. Deprecated
Synopsis
--------
.. Description
- Converts an arbitrary string to a valid Candlepin label
.. Aliases
.. Requirements
.. Input
Input
-----
This describes the input of the filter, the value before ``| redhat.satellite.cp_label``.
.. tabularcolumns:: \X{1}{3}\X{2}{3}
.. list-table::
:width: 100%
:widths: auto
:header-rows: 1
:class: longtable ansible-option-table
* - Parameter
- Comments
* - .. raw:: html
.. _ansible_collections.redhat.satellite.cp_label_filter__parameter-_input:
.. rst-class:: ansible-option-title
**Input**
.. raw:: html
.. ansible-option-type-line::
:ansible-option-type:`string` / :ansible-option-required:`required`
.. raw:: html
- .. raw:: html
String that should be converted
.. raw:: html
.. Options
.. Attributes
.. Notes
.. Seealso
.. Examples
Examples
--------
.. code-block:: yaml+jinja
organization_label: "{{ 'Default Organization' | cp_label }}"
# => 'Default_Organization'
.. Facts
.. Return values
Return Value
------------
.. tabularcolumns:: \X{1}{3}\X{2}{3}
.. list-table::
:width: 100%
:widths: auto
:header-rows: 1
:class: longtable ansible-option-table
* - Key
- Description
* - .. raw:: html
.. _ansible_collections.redhat.satellite.cp_label_filter__return-_value:
.. rst-class:: ansible-option-title
**Return value**
.. raw:: html
.. ansible-option-type-line::
:ansible-option-type:`string`
.. raw:: html
- .. raw:: html
The converted Candlepin label
.. rst-class:: ansible-option-line
:ansible-option-returned-bold:`Returned:` success
.. raw:: html
.. Status (Presently only deprecated)
.. Authors
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.
.. Extra links
Collection links
~~~~~~~~~~~~~~~~
.. ansible-links::
- title: "Issue Tracker"
url: "https://bugzilla.redhat.com"
external: true
- title: "Homepage"
url: "https://access.redhat.com/products/red-hat-satellite"
external: true
- title: "Repository (Sources)"
url: "https://github.com/RedHatSatellite/satellite-ansible-collection"
external: true
.. Parsing errors