-
Notifications
You must be signed in to change notification settings - Fork 4
/
playbook-preinstall.yml
50 lines (46 loc) · 1.1 KB
/
playbook-preinstall.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
---
# Configure dns and dhcp records on nameservers.
- hosts: nameservers
tags: infra
become: true
collections:
- moc.cnv_common
roles:
- role: dnsmasq
# Perform some basic setup of the provisioning host:
#
# - Subscribe the system to RHN
# - Install required pacakges
# - Configure libvirt
# - Create the kni user that will be used for subsequent connections
- hosts: provisioner
tags: prep
vars:
ansible_user: cloud-user
become: true
roles:
- role: rh_register
- role: base_packages
- role: libvirt
- role: kni_user
# Configure firewall and network interfaces on the provisioning host.
- hosts: provisioner
tags: net
become: true
roles:
- role: provisioner/firewall
- role: provisioner/net_baremetal
- role: provisioner/net_provision
# Install the openshift installer and set up support services
# (the image cache and local registry mirror).
- hosts: provisioner
tags: [installer]
roles:
- registry
- openshift_installer
- rhcos_cache
# Generate the install_config.yaml
- hosts: provisioner
tags: [install_config]
roles:
- install_config