-
Notifications
You must be signed in to change notification settings - Fork 15
/
vcenter_info.yml
72 lines (61 loc) · 1.94 KB
/
vcenter_info.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
65
66
67
68
69
70
71
72
---
- name: "list information about vCenter infrastructure"
hosts: all
gather_facts: False
vars_files:
- "vault.yml"
tasks:
- name: Provide information about vCenter
vmware_about_info:
hostname: '{{ vcenter_hostname }}'
username: '{{ vcenter_username }}'
password: '{{ vcenter_password }}'
validate_certs: no
delegate_to: localhost
register: vcenter_about_info
- debug:
msg: vCenter info = {{ vcenter_about_info }}
- name: Provide capability information about ESXi servers
vmware_host_capability_info:
hostname: '{{ esxi_hostname }}'
username: '{{ esxi_username }}'
password: '{{ esxi_password }}'
cluster_name: V2V_Cluster
validate_certs: no
delegate_to: localhost
register: esxi_capability_info
- debug:
msg: ESXi info = {{ esxi_capability_info }}
- name: Provide config information about ESXi servers
vmware_host_config_info:
hostname: '{{ esxi_hostname }}'
username: '{{ esxi_username }}'
password: '{{ esxi_password }}'
cluster_name: V2V_Cluster
validate_certs: no
delegate_to: localhost
register: esxi_config_info
- debug:
msg: ESXi info = {{ esxi_config_info }}
- name: Provide feature information about ESXi servers
vmware_host_feature_info:
hostname: '{{ esxi_hostname }}'
username: '{{ esxi_username }}'
password: '{{ esxi_password }}'
cluster_name: V2V_Cluster
validate_certs: no
delegate_to: localhost
register: esxi_feature_info
- debug:
msg: ESXi info = {{ esxi_feature_info }}
- name: Provide information about the cluster
vmware_cluster_info:
hostname: '{{ esxi_hostname }}'
username: '{{ esxi_username }}'
password: '{{ esxi_password }}'
cluster_name: V2V_Cluster
validate_certs: no
delegate_to: localhost
register: vmware_cluster_info
- debug:
msg: ESXi info = {{ vmware_cluster_info }}