Debian Codegraph @

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

raw symbols SCIP
1 theforeman.foreman.content_view_publish
2 =======================================
3
4 Publish a list of Content Views.
5
6 Role Variables
7 --------------
8
9 This role supports the [Common Role Variables](https://github.com/theforeman/foreman-ansible-modules/blob/develop/README.md#common-role-variables).
10
11 ### Required
12
13 - `foreman_content_views`: List of Content Views to publish. It can be either a list of Content View names or a list of dictionaries with the parameters as accepted by the `content_view_version` module or the `content_views` role.
14
15 ### Optional
16
17 - `foreman_content_view_publish_async`: Asynchronous mode lets you control how long-running tasks execute. See the [Ansible documentation](https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_async.html#asynchronous-playbook-tasks) for details.
18 - `foreman_content_view_publish_poll`: For asynchronous tasks, this is how often to check back on the status of those tasks.
19
20 Example Playbook
21 ----------------
22
23 ### List of Content View names
24
25 ```yaml
26 - hosts: localhost
27 roles:
28 - role: theforeman.foreman.content_view_publish
29 vars:
30 foreman_server_url: https://foreman.example.com
31 foreman_username: "admin"
32 foreman_password: "changeme"
33 foreman_organization: "Default Organization"
34 foreman_content_views:
35 - RHEL 7 View
36 - RHEL 8 View
37 ```
38
39 ### List of dictionaries as accepted by the `content_view_version` module
40
41 ```yaml
42 - hosts: localhost
43 roles:
44 - role: theforeman.foreman.content_view_publish
45 vars:
46 foreman_server_url: https://foreman.example.com
47 foreman_username: "admin"
48 foreman_password: "changeme"
49 foreman_organization: "Default Organization"
50 foreman_content_views:
51 - content_view: RHEL 7 View
52 description: "daily publish of RHEL 7 View"
53 - content_view: RHEL 8 View
54 description: "daily publish of RHEL 8 View"
55 ```
56
57 ### List of dictionaries as accepted by the `content_views` role
58
59 ```yaml
60 - hosts: localhost
61 roles:
62 - role: theforeman.foreman.content_view_publish
63 vars:
64 foreman_server_url: https://foreman.example.com
65 foreman_username: "admin"
66 foreman_password: "changeme"
67 foreman_organization: "Default Organization"
68 foreman_content_views:
69 - name: RHEL7
70 repositories:
71 - name: Red Hat Enterprise Linux 7 Server RPMs x86_64 7Server
72 product: 'Red Hat Enterprise Linux Server'
73 - name: Red Hat Enterprise Linux 7 Server - Extras RPMs x86_64
74 product: 'Red Hat Enterprise Linux Server'
75 - name: Red Hat Satellite Tools 6.8 (for RHEL 7 Server) (RPMs)
76 product: 'Red Hat Enterprise Linux Server'
77 - name: BearApp
78 organization: "ACME"
79 repositories:
80 - name: MyApps
81 product: ACME
82 filters:
83 - name: "bear app"
84 filter_state: "present"
85 filter_type: "rpm"
86 rule_name: "bear"
87 - name: BearAppServer
88 components:
89 - content_view: RHEL7
90 latest: true
91 - content_view: BearApp
92 latest: true
93 ```