redhat.satellite.content_view_filter_rule module – Manage content view filter rules
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_filter_rule
.
New in redhat.satellite 3.9.0
Synopsis
Create, manage and remove content view filter rules
Requirements
The below requirements are needed on the host that executes this module.
requests
Parameters
Parameter |
Comments |
---|---|
set package, module_stream, etc. architecture that the rule applies to |
|
the name of the content view that the filter applies to |
|
the name of the content view filter that the rule applies to |
|
the context for a module only valid in filter type=modulemd |
|
set whether rule applied to erratum using the ‘Issued On’ or ‘Updated On’ date only valid on filter type=erratum. Choices:
|
|
the rule limit for erratum end date (YYYY-MM-DD) see date_type for the date the rule applies to Only valid on filter_type=erratum_by_date. |
|
erratum id |
|
package maximum version |
|
package minimum version |
|
Content view filter rule name, package name, package_group name, module stream or docker tag If omitted, the value of name will be used if necessary for module stream filters, this is the name of the module stream to search for |
|
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 |
|
URL of the Foreman server. If the value is not specified in the task, the value of environment variable |
|
the rule limit for erratum start date (YYYY-MM-DD) see date_type for the date the rule applies to Only valid on filter_type=erratum. |
|
State of the entity Choices:
|
|
the context for a module only valid in filter type=modulemd |
|
errata types the ruel applies to (enhancement, bugfix, security) Only valid on filter_type=erratum Default: |
|
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:
|
|
package or module version |
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
# the examples assume that the content view filters have been already created
# e.g. by the redhat.satellite.content_view_filter module
- name: "Include errata by date"
redhat.satellite.content_view_filter_rule:
username: "admin"
password: "changeme"
server_url: "https://satellite.example.com"
organization: "Default Organization"
content_view: "Standard Operating Environment"
content_view_filter: "errata_by_date"
state: present
date_type: updated
types:
- bugfix
- security
- enhancement
end_date: "2022-05-25"
- name: "Exclude csh versions 6.20 and older"
redhat.satellite.content_view_filter_rule:
username: "admin"
password: "changeme"
server_url: "https://satellite.example.com"
organization: "Default Organization"
content_view: "Standard Operating Environment"
content_view_filter: "package filter 1"
name: "tcsh"
max_version: "6.20.00"
- name: "Exclude csh version 6.23 due to example policy"
redhat.satellite.content_view_filter_rule:
username: "admin"
password: "changeme"
server_url: "https://satellite.example.com"
organization: "Default Organization"
content_view: "Standard Operating Environment"
content_view_filter: "package filter 1"
name: "tcsh"
version: "6.23.00"
- name: "Content View Filter Rule for 389"
redhat.satellite.content_view_filter_rule:
username: "admin"
password: "changeme"
server_url: "https://satellite.example.com"
validate_certs: "true"
organization: "Default Organization"
content_view: "Standard Operating Environment"
content_view_filter: "modulemd filter"
name: "389-directory-server"
stream: "next"
version: "820220325123957"
context: "9edba152"
state: present
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 view filter rule(s). Returned: success |