redhat.satellite.content_view – Manage Content Views
Note
This plugin is part of the redhat.satellite collection (version 3.1.0).
You might already have this collection installed if you are using the ansible
package.
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
.
To use it in a playbook, specify: redhat.satellite.content_view
.
New in version 1.0.0: of redhat.satellite
Synopsis
Create and manage content views
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 |
|
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:
|
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 |