forked from t-prinz/redhat_satellite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
satellite_config.yml
60 lines (47 loc) · 2.12 KB
/
satellite_config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
---
- name: Ensure Satellite systems are configured
hosts: "{{ hostlist | default('all') }}"
tasks:
- name: Configure various components on the Satellite server
block:
- name: Print Satellite installation parameters
debug:
msg: "{{ inventory_hostname }}, {{ satellite_username }}, {{ satellite_password }}, {{ satellite_organization }}, {{ satellite_location }} {{ satellite_manifest_path }}"
verbosity: 1
- name: Ensure the Satellite server name is defined
set_fact:
satellite_server_url: "https://{{ ansible_host }}"
- name: Print Satellite server connection information
debug:
msg: "Configuring Satellite server at {{ satellite_server_url }}"
- name: Ensure manifest is installed
include_role:
name: redhat.satellite.manifest
- name: Ensure products are selected
include_role:
name: redhat.satellite.repositories
- name: Synchronize repositories (leave out repository specification to sync all repositories)
redhat.satellite.repository_sync:
username: "{{ satellite_username }}"
password: "{{ satellite_password}}"
server_url: "{{ satellite_server_url }}"
product: "{{ item.name }}"
organization: "{{ satellite_organization }}"
validate_certs: no
with_items: "{{ satellite_products }}"
# async: 7200
# poll: 60
- name: Ensure Lifecycles are created
include_role:
name: redhat.satellite.lifecycle_environments
- name: Ensure Content Views are created
include_role:
name: redhat.satellite.content_views
- name: Loop over all the content views/filter definitions and ensure they are created and published
include_tasks:
file: files/content_view_loop_tasks.yml
loop: "{{ satellite_content_views_to_publish }}"
- name: Ensure Activation Keys are created
include_role:
name: redhat.satellite.activation_keys
delegate_to: localhost