Skip to content

Commit

Permalink
try to align examples to those of #1709
Browse files Browse the repository at this point in the history
  • Loading branch information
pcfe authored and evgeni committed Mar 4, 2024
1 parent 7e8a7d9 commit 52c98bc
Showing 1 changed file with 21 additions and 11 deletions.
32 changes: 21 additions & 11 deletions plugins/modules/content_view_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,29 +92,39 @@
'''

EXAMPLES = '''
- name: Exclude csh
# as of v4.0.0 you can no longer manage rules from this module, content_view_filter_rule should be used for that
# you still need to ensure the filter itself exists before adding rules to said filter
- name: Ensure the filter for errata inclusion by date exists
theforeman.foreman.content_view_filter:
username: "admin"
password: "changeme"
server_url: "https://foreman.example.com"
name: "package filter 1"
organization: "Default Organization"
content_view: Web Servers
filter_type: "rpm"
package_name: tcsh
name: "errata_by_date"
content_view: "Standard Operating Environment"
filter_type: rpm
inclusion: true
- name: Include newer csh versions
- name: Ensure package exclude filter 1 exists
theforeman.foreman.content_view_filter:
username: "admin"
password: "changeme"
server_url: "https://foreman.example.com"
organization: "Default Organization"
name: "package filter 1"
content_view: "Standard Operating Environment"
filter_type: rpm
- name: Ensure modulemd filter for 389 exists
theforeman.foreman.content_view_filter:
username: "admin"
password: "changeme"
server_url: "https://foreman.example.com"
organization: "Default Organization"
content_view: Web Servers
filter_type: "rpm"
package_name: tcsh
min_version: 6.20.00
inclusion: true
name: "modulemd filter"
content_view: "Standard Operating Environment"
filter_type: modulemd
'''

RETURN = '''
Expand Down

0 comments on commit 52c98bc

Please sign in to comment.