.. Document meta :orphan: .. Anchors .. _ansible_collections.theforeman.foreman.content_view_version_module: .. Anchors: short name for ansible.builtin .. Anchors: aliases .. Title theforeman.foreman.content_view_version -- Manage Content View Versions +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ .. Collection note .. note:: This plugin is part of the `theforeman.foreman collection `_ (version 2.1.2). To install it use: :code:`ansible-galaxy collection install theforeman.foreman`. To use it in a playbook, specify: :code:`theforeman.foreman.content_view_version`. .. version_added .. versionadded:: 1.0.0 of theforeman.foreman .. contents:: :local: :depth: 1 .. Deprecated Synopsis -------- .. Description - Publish, Promote or Remove a Content View Version .. Aliases .. Requirements Requirements ------------ The below requirements are needed on the host that executes this module. - requests .. Options Parameters ---------- .. raw:: html
Parameter Choices/Defaults Comments
content_view
string / required
Name of the content view
current_lifecycle_environment
string
The lifecycle environment that is already associated with the content view version
Helpful for promoting a content view version
description
string
Description of the Content View Version
force_promote
boolean
    Choices:
  • no ←
  • yes
Force content view promotion and bypass lifecycle environment restriction

aliases: force
force_yum_metadata_regeneration
boolean
    Choices:
  • no ←
  • yes
Force metadata regeneration when performing Publish and Promote tasks
lifecycle_environments
list / elements=string
The lifecycle environments the Content View Version should be in.
organization
string / required
Organization that the entity is in
password
string / required
Password of the user accessing the Foreman server.
If the value is not specified in the task, the value of environment variable FOREMAN_PASSWORD will be used instead.
server_url
string / required
URL of the Foreman server.
If the value is not specified in the task, the value of environment variable FOREMAN_SERVER_URL will be used instead.
state
string
    Choices:
  • present ←
  • absent
State of the entity
username
string / required
Username accessing the Foreman server.
If the value is not specified in the task, the value of environment variable FOREMAN_USERNAME will be used instead.
validate_certs
boolean
    Choices:
  • no
  • yes ←
Whether or not to verify the TLS certificates of the Foreman server.
If the value is not specified in the task, the value of environment variable FOREMAN_VALIDATE_CERTS will be used instead.
version
string
The content view version number (i.e. 1.0)

.. Notes Notes ----- .. note:: - You cannot use this to remove a Content View Version from a Lifecycle environment, you should promote another version first. - For idempotency you must specify either ``version`` or ``current_lifecycle_environment``. .. Seealso .. Examples Examples -------- .. code-block:: yaml+jinja - name: "Ensure content view version 2.0 is in Test & Pre Prod" theforeman.foreman.content_view_version: username: "admin" password: "changeme" server_url: "https://foreman.example.com" content_view: "CV 1" organization: "Default Organization" version: "2.0" lifecycle_environments: - Test - Pre Prod - name: "Ensure content view version in Test is also in Pre Prod" theforeman.foreman.content_view_version: username: "admin" password: "changeme" server_url: "https://foreman.example.com" content_view: "CV 1" organization: "Default Organization" current_lifecycle_environment: Test lifecycle_environments: - Pre Prod - name: "Publish a content view, not idempotent" theforeman.foreman.content_view_version: username: "admin" password: "changeme" server_url: "https://foreman.example.com" content_view: "CV 1" organization: "Default Organization" - name: "Publish a content view and promote that version to Library & Dev, not idempotent" theforeman.foreman.content_view_version: username: "admin" password: "changeme" server_url: "https://foreman.example.com" content_view: "CV 1" organization: "Default Organization" lifecycle_environments: - Library - Dev - name: "Ensure content view version 1.0 doesn't exist" theforeman.foreman.content_view_version: username: "admin" password: "changeme" server_url: "https://foreman.example.com" content_view: "Web Servers" organization: "Default Organization" version: "1.0" state: absent # Obtain information about a Content View and its versions - name: find all CVs theforeman.foreman.resource_info: username: "admin" password: "changeme" server_url: "https://foreman.example.com" organization: "Default Organization" resource: content_views search: 'name="Example Content"' register: example_content # Obtain more details about all versions of a specific Content View - name: "find content view versions of {{ cv_id }}" theforeman.foreman.resource_info: username: "admin" password: "changeme" server_url: "https://foreman.example.com" organization: "Default Organization" resource: content_view_versions params: content_view_id: "{{ example_content.resources[0].id }}" register: version_information .. Facts .. Return values Return Values ------------- Common return values are documented :ref:`here `, the following are the fields unique to this module: .. raw:: html
Key Returned Description
entity
dictionary
success
Final state of the affected entities grouped by their type.

 
content_view_versions
list / elements=dictionary
success
List of content view versions.



.. Status (Presently only deprecated) .. Authors Authors ~~~~~~~ - Sean O'Keeffe (@sean797) .. Parsing errors