Skip to content

Commit

Permalink
improved task names
Browse files Browse the repository at this point in the history
  • Loading branch information
adworjan committed Dec 15, 2023
1 parent ae85ff5 commit 806e06b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .ansible-sign/sha256sum.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ db9832f815d45cb38cc7a54b4712be867ba5300a7b3df4550d9d9c072cd776d9 roles/shadowma
c882455457802d71136ae7beb7bbf00c4f466fe70f978a02c8b3c4f85d0b2e18 roles/shadowman_cores/tasks/vmware_vm_decrease.yml
e5b8e57ae929dce88e87a2c9c5d733f549c2354db9a8dc93a70cddd01128a21a roles/shadowman_cores/tasks/vmware_vm_increase.yml
d5a1c57c596a408447a2052736863e2ce866a6d89b39f73042410188f615930e roles/shadowman_cores/tasks/vmware_vm_restore.yml
187c47956aef9382d96ab512dfa0f524d3a8f7e1da8eee6cdef9f15e28919318 roles/shadowman_esx_vm_migration_memory/tasks/main.yml
bad0a2d1843066421cb20caad4eb4c2b028ac9984ecc17d16c31d4519d036ae0 roles/shadowman_esx_vm_migration_memory/tasks/main.yml
cb4153027ba2b948267e16eabc87d026b7d91348014ee9e8df5fc6a123064d02 roles/shadowman_mattermost/defaults/main.yml
04a0267de8ef69af09e732977d37e57f5726aa93679c423835acf350925024bc roles/shadowman_mattermost/tasks/main.yml
63fc480965f44fb833401bcdee3cd66d660e19dd1c933254d0c80f1393350d8d roles/shadowman_mem/defaults/main.yml
Expand Down
22 changes: 11 additions & 11 deletions .ansible-sign/sha256sum.txt.sig
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
-----BEGIN PGP SIGNATURE-----

iQGzBAABCAAdFiEE/bJvyFHKKJdaZDOLTiIiIXrUDNEFAmV8oDAACgkQTiIiIXrU
DNEIHAv8DCYGd5yTaVIop+ZcDy8jSiRHU5av6+zMfHCJoiJYTQsgPM0IDOX1FNo3
ramsWcMknBgttGtZT0j/t0lkutjR7Jf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 6 deletions roles/shadowman_esx_vm_migration_memory/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,26 @@
delegate_to: localhost
register: cluster_info

- name: Get hosts
- name: Determine ESX hosts in datacenter
ansible.builtin.set_fact:
cluster_hosts: "{{ cluster_info | json_query('clusters.*.hosts') | flatten }}"

- name: Get host info
- name: Get ESX host info
community.vmware.vmware_host_facts:
esxi_hostname: "{{ item.name }}"
validate_certs: false
register: esx_fact
loop: "{{ cluster_hosts }}"

- name: Find ESX host info with most memory
- name: Determine ESX host info with most memory
ansible.builtin.set_fact:
most_esx_host_info: "{{ esx_fact.results | sort(attribute='ansible_facts.ansible_memfree_mb') | last }}"

- name: Find ESX host name with most memory
- name: Determine ESX host name with most memory
ansible.builtin.set_fact:
most_esx_host_name: "{{ most_esx_host_info.ansible_facts.ansible_hostname }}"

- name: Gather all VMs
- name: Gather all VM Information
community.vmware.vmware_vm_info:
validate_certs: false
vm_type: vm
Expand All @@ -42,7 +42,7 @@
ansible.builtin.set_fact:
vmtomove: "{{ vms.virtual_machines | selectattr('esxi_hostname', 'equalto', overloadedesx) | map(attribute='guest_name') | list | first }}"

- name: Perform vMotion of virtual machine
- name: Perform vMotion of virtual machine to most free ESX host
community.vmware.vmware_vmotion:
validate_certs: false
vm_name: "{{ vmtomove }}"
Expand Down

0 comments on commit 806e06b

Please sign in to comment.