Skip to content

Commit

Permalink
tidier, shorter, better task names
Browse files Browse the repository at this point in the history
  • Loading branch information
acozine committed Sep 13, 2024
1 parent 28e3f9d commit e294b76
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions playbooks/utils/vSphere_audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,22 +76,14 @@
ansible.builtin.set_fact:
storage_nodes: "{{ storage_info.datastores | map(attribute='info.name') | unique | sort }}"

- name: View list of templates
- name: View list of available templates
ansible.builtin.debug:
var: template_names

- name: View the list of ESXi hosts
- name: View list of ESXi hosts
ansible.builtin.debug:
var: esxi_hostnames

- name: View ESXi memory stats
ansible.builtin.debug:
var: esxi_host_memory

- name: View array of ESXi stats
ansible.builtin.debug:
var: slim_esxi_host_memory

- name: View memory usage per ESXi host
ansible.builtin.debug:
msg: The {{ item.0 }} host is using {{ ( item.1 | int * 1048576 ) | human_readable }} out of {{ item.2 | human_readable }} available memory.
Expand All @@ -110,7 +102,7 @@
ansible.builtin.debug:
var: storage_nodes

- name: better view of storage info
- name: View free space per storage node
ansible.builtin.debug:
msg: The {{ item }} datastore has {{ storage_info.datastores | selectattr('info.name', 'equalto', item) | map(attribute='info.freeSpace') | sum | human_readable }} of free space.
loop: "{{ storage_nodes }}"

0 comments on commit e294b76

Please sign in to comment.