forked from redhatbsb/OpenshiftAzure
-
Notifications
You must be signed in to change notification settings - Fork 0
/
create_openshift_azure.yaml
66 lines (52 loc) · 1.52 KB
/
create_openshift_azure.yaml
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
63
64
65
66
###########################################
# Create Azure Infrastructure
###########################################
- hosts: localhost
vars_prompt:
- name: "password"
prompt: "Password for subscription"
private: yes
tasks:
- name: Include variables
include_vars:
file: config.yaml
- name: Set Fact for localhost
set_fact:
password_sub: "{{ password }}"
- name: Create basic Azure Infrastructure (Resource Groups, Networks, Subnets)
import_role:
name: basic-azure-infrastructure
- name: Deployment Infra Masters
import_role:
name: deployment-infra-masters
- name: Deployment Infra Infras
import_role:
name: deployment-infra-infras
- name: Deployment Infra Workers
import_role:
name: deployment-infra-workers
- name: Create Bastion Host with inventory
import_role:
name: deployment-bastion
- name: Do post install stuff on Azure Infra
import_role:
name: postinstall-azure
###########################################
# Do post install stuff on Bastion
###########################################
- hosts: bastiongroup
no_log: false
become: yes
tasks:
- name: Include variables
include_vars:
file: config.yaml
- name: Copy password variable from localhost
set_fact:
password: "{{ hostvars['localhost']['password_sub'] }}"
- name: Verifica se senha esta ok...
debug: var=password
- name: Do postinstall on Bastion
import_role:
name: postinstall-bastion
become: yes