-
Notifications
You must be signed in to change notification settings - Fork 0
/
Setup_vCenter.yml
64 lines (61 loc) · 2.07 KB
/
Setup_vCenter.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
63
64
################################################################################
#
# vCenter Setup Section
# VMWare vCenter and the ESXi hosts must be installed and available
# using the IP addresses and passwords provided. The ESXi addresses and
# passwords are part of inventory file. The vCenter connectivity info is
# included in group_vars/all.yml
#
#
################################################################################
- hosts: localhost
vars_files:
- group_vars/secrets.yml
roles:
- VMware/VMWAREvcenter
################################################################################
#
# Host Setup Section
# ESXIhosts role configuration is common to both iSCSI and FC hosts
# ESXIiscsi role configuration is only applied to the iSCSI hosts
# If configure_fc or configure_iscsi are commented out, the host config will be skipped
# If inventory does not contain any servers under esxi_fc or esxi_iscsi seciotns, the config will be skipped
#
################################################################################
- hosts: esxi_iscsi
gather_facts: no
serial: 1
vars_files:
- group_vars/secrets.yml
- roles/VMware/ESXIiscsi/defaults/main.yml
roles:
- role: VMware/ESXIpostvC
when: configure_iscsi == 'true'
- role: VMware/ESXIpostvCiscsi
when: configure_iscsi == 'true'
- hosts: esxi_fc
gather_facts: no
serial: 1
vars_files:
- group_vars/secrets.yml
roles:
- role: VMware/ESXIpostvC
when: configure_fc == 'true'
################################################################################
#
# vCenter Setup Section After Adding Hosts to vCenter
# VMWare vCenter and the ESXi hosts must be installed and available
# using the IP addresses and passwords provided. The ESXi addresses and
# passwords are part of inventory file. The vCenter connectivity info is
# included in group_vars/all.yml
#
#
################################################################################
- hosts: localhost
#
vars_files:
- group_vars/secrets.yml
- vars/ontap_main.yml
roles:
- VMware/VMWAREvcenterpostESXI
#