-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSetup_ESXi.yml
34 lines (31 loc) · 999 Bytes
/
Setup_ESXi.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
################################################################################
#
# 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 sections, the config will be skipped
#
################################################################################
---
#- hosts: localhost
- hosts: esxi_iscsi
gather_facts: no
serial: 1
vars_files:
- group_vars/secrets.yml
- vars/ontap_main.yml
roles:
- role: VMware/ESXIiscsi
when: configure_iscsi == 'true'
- role: VMware/ESXIhosts
when: configure_iscsi == 'true'
- hosts: esxi_fc
gather_facts: no
serial: 1
vars_files:
- group_vars/secrets.yml
- vars/ontap_main.yml
roles:
- role: VMware/ESXIhosts
when: configure_fc == 'true'