redhat.satellite.content_view module – Manage Content Views
Note
This module is part of the redhat.satellite collection (version 4.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 redhat.satellite
.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: redhat.satellite.content_view
.
New in redhat.satellite 1.0.0
Synopsis
Create and manage content views
Aliases: katello_content_view
Requirements
The below requirements are needed on the host that executes this module.
requests
Parameters
Parameter |
Comments |
---|---|
Auto publish composite view when a new version of a component content view is created. Also note auto publish will only happen when the component is marked “latest”. Choices:
|
|
List of content views to includes content_view and either version or latest. Ignored if composite=False. |
|
Content View name to be added to the Composite Content View |
|
Version of the Content View to add |
|
Always use the latest Content View Version Choices:
|
|
A composite view contains other content views. Choices:
|
|
Description of the Content View |
|
Designate this Content View for importing from upstream servers only. Choices:
|
|
Label of the Content View. This field cannot be updated. |
|
Name of the Content View |
|
Organization that the entity is in |
|
Password of the user accessing the Foreman server. If the value is not specified in the task, the value of environment variable |
|
List of repositories that include name and product. Cannot be combined with composite=True. |
|
Name of the Repository to be added |
|
Product of the Repository to be added |
|
URL of the Foreman server. If the value is not specified in the task, the value of environment variable |
|
Solve RPM dependencies by default on Content View publish Choices:
|
|
State of the entity
Choices:
|
|
Username accessing the Foreman server. If the value is not specified in the task, the value of environment variable |
|
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 Choices:
|
Attributes
Attribute |
Support |
Description |
---|---|---|
Support: full |
Can run in check_mode and return changed status prediction without modifying the entity |
|
Support: full |
Will return details on what has changed (or possibly needs changing in check_mode), when in diff mode |
Examples
- name: "Create or update Fedora content view"
redhat.satellite.content_view:
username: "admin"
password: "changeme"
server_url: "https://satellite.example.com"
name: "Fedora CV"
organization: "My Cool new Organization"
repositories:
- name: 'Fedora 26'
product: 'Fedora'
- name: "Create a composite content view"
redhat.satellite.content_view:
username: "admin"
password: "changeme"
server_url: "https://satellite.example.com"
name: "Fedora CCV"
organization: "My Cool new Organization"
composite: true
auto_publish: true
components:
- content_view: Fedora CV
content_view_version: 1.0
- content_view: Internal CV
latest: true
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
Final state of the affected entities grouped by their type. Returned: success |
|
List of content views. Returned: success |