Debian Codegraph @

ansible_collections/theforeman/foreman/roles/content_view_version_cleanup/README.md

raw symbols SCIP
1 theforeman.foreman.content_view_version_cleanup
2 ===============================================
3
4 Clean up unused Content View Versions.
5
6 This role will remove any unused versions of your Content Views and
7 Composite Content Views.
8
9 Unused versions are those that match the following criteria:
10 * not published to any Lifecycle Environment
11 * not published as part of any Composite Content View
12 * not part of any Composite Content View Version
13
14 This role will first clean Composite Content Views, to avoid leaving
15 unused versions of regular Content Views behind.
16
17 Role Variables
18 --------------
19
20 This role supports the [Common Role Variables](https://github.com/theforeman/foreman-ansible-modules/blob/develop/README.md#common-role-variables).
21
22 ### Required
23
24 - `foreman_content_view_version_cleanup_keep`: How many unused versions to keep.
25
26 ### Optional
27
28 - `foreman_content_view_version_cleanup_search`: Limit the cleaned content views using a search string (example: `name ~ SOE`).
29 When using Composite Content Views, both the composite and the non-composite ones need to match this search to be properly cleaned up by this role.
30
31 Example Playbook
32 ----------------
33
34 ```yaml
35 - hosts: localhost
36 roles:
37 - role: theforeman.foreman.content_view_version_cleanup
38 vars:
39 foreman_server_url: https://foreman.example.com
40 foreman_username: "admin"
41 foreman_password: "changeme"
42 foreman_organization: "Default Organization"
43 foreman_content_view_version_cleanup_keep: 10
44 ```