-
Notifications
You must be signed in to change notification settings - Fork 1
/
vmware_visbility.yml
40 lines (34 loc) · 1.02 KB
/
vmware_visbility.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
---
- name: VMware visbility
hosts: localhost
tasks:
- name: Set VCenter parameters
ansible.builtin.include_vars: login_info.yml
- name: Use info role
ansible.builtin.import_role:
name: cloud.vmware_ops.info
vars:
info_license: true
info_storage: true
info_appliance: true
info_guest: true
info_cluster: true
info_hostname: "{{ vcenter_hostname }}"
info_username: "{{ vcenter_username }}"
info_password: "{{ vcenter_password }}"
info_validate_certs: false
- name: Print guests info
ansible.builtin.debug:
msg: "{{ __guests }}"
- name: Print clusters info
ansible.builtin.debug:
msg: "{{ __clusters_info }}"
- name: Print license info
ansible.builtin.debug:
msg: "{{ __license }}"
- name: Print storage info
ansible.builtin.debug:
msg: "{{ __storage_policy }}"
- name: Print appliance info
ansible.builtin.debug:
msg: "{{ __appliance }}"