-
Notifications
You must be signed in to change notification settings - Fork 4
/
playbook-postinstall.yml
47 lines (40 loc) · 1.12 KB
/
playbook-postinstall.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
---
- hosts: provisioner
become: true
tags: [fetch]
tasks:
# Save a copy of the generated install-config.yaml file for
# diagnostic/debugging purposes.
- name: get install-config
fetch:
src: /home/kni/install-config.yaml
dest: cluster/install-config.yaml
flat: true
# Fetch the kubeconfig file
- name: get kubeconfig
fetch:
src: /home/kni/clusterconfigs/auth/kubeconfig
dest: cluster/kubeconfig
flat: true
# Fetch the kubeadmin password
- name: get kubeadmin password
fetch:
src: /home/kni/clusterconfigs/auth/kubeadmin-password
dest: cluster/kubeadmin-password
flat: true
- hosts: localhost
tags: [ocp]
environment:
KUBECONFIG: ./cluster/kubeconfig
roles:
# Set up the default ingress certificate (used e.g. for the
# openshift web ui).
- role: ocp/tls
# Configure groups and role bindings
- role: ocp/authz
# Connect OpenShift to the MOC SSO environment.
- role: ocp/moc-sso
# Install CNV operator.
- role: ocp/cnv
# Configure image registry
- role: ocp/registry