-
Notifications
You must be signed in to change notification settings - Fork 30
/
02_prepare-openshift.yml
executable file
·62 lines (54 loc) · 1.27 KB
/
02_prepare-openshift.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
61
62
#!/usr/bin/env ansible-playbook
---
- name: Inventory OpenShift Nodes
hosts: localhost
connection: local
become: no
gather_facts: no
environment:
OS_USERNAME: "{{ openstack_user }}"
OS_PASSWORD: "{{ openstack_passwd }}"
OS_AUTH_URL: "{{ openstack_auth_url }}"
OS_PROJECT_NAME: "{{ openstack_project }}"
OS_USER_DOMAIN_NAME: Default
OS_PROJECT_DOMAIN_NAME: Default
OS_IDENTITY_API_VERSION: 3
tasks:
- name: Include vars.yml
include_vars:
file: vars.yml
- import_role:
name: osp-inventory
- name: Setup All OpenShift Nodes
hosts: all
gather_facts: yes
become: yes
tasks:
- name: Include vars.yml
include_vars:
file: vars.yml
- import_role:
name: redhat_subscription
when: openshift_deployment == "openshift-enterprise" and not rhn_local_repo
- import_role:
name: all-prep
- name: Setup All OpenShift Nodes
hosts: openshift
gather_facts: true
become: true
tasks:
- name: Include vars.yml
include_vars:
file: vars.yml
- import_role:
name: docker-prep
- name: Configure OpenShift inventory file
hosts: bastion
gather_facts: true
become: true
tasks:
- name: Include vars.yml
include_vars:
file: vars.yml
- import_role:
name: ocp-inventory