From b42fdb81a87a641ea0004410d4d8982da28c49a6 Mon Sep 17 00:00:00 2001 From: Mario Lenz Date: Sat, 26 Mar 2022 19:11:47 +0000 Subject: [PATCH] prepare 2.2.0 release --- CHANGELOG.rst | 14 ++++++++++ changelogs/changelog.yaml | 14 ++++++++++ ...posibility_to_get_only_one_vm_by_name.yaml | 3 --- .../1243-vmware-dvs-host-uplink-ordering.yml | 3 --- .../fix_shutdownguest_state_idempotency.yml | 2 -- .../fragments/vmware_vm_config_option.yml | 4 --- docs/community.vmware.vmware_httpapi.rst | 2 +- ...mmunity.vmware.vmware_tools_connection.rst | 4 ++- ...community.vmware.vmware_vm_info_module.rst | 27 +++++++++++++++++++ 9 files changed, 59 insertions(+), 14 deletions(-) delete mode 100644 changelogs/fragments/1241-vmware_vm_info-add_the_posibility_to_get_only_one_vm_by_name.yaml delete mode 100644 changelogs/fragments/1243-vmware-dvs-host-uplink-ordering.yml delete mode 100644 changelogs/fragments/fix_shutdownguest_state_idempotency.yml delete mode 100644 changelogs/fragments/vmware_vm_config_option.yml diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 1dd945e1f7..736af2b02d 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -5,6 +5,20 @@ community.vmware Release Notes .. contents:: Topics +v2.2.0 +====== + +Breaking Changes / Porting Guide +-------------------------------- + +- vmware_vm_info - Add the posibility to get the configuration informations of only one vm by name. (https://github.com/ansible-collections/community.vmware/pull/1241) + +Bugfixes +-------- + +- vmware_dvs_host - match the list of the host nics in the correct order based on the uplink port name in vCenter (https://github.com/ansible-collections/community.vmware/issues/1242). +- vmware_guest_powerstate - `shutdownguest` power state is not idempotent (https://github.com/ansible-collections/community.vmware/pull/1227). + v2.1.0 ====== diff --git a/changelogs/changelog.yaml b/changelogs/changelog.yaml index 63b727f20f..0407edfe8d 100644 --- a/changelogs/changelog.yaml +++ b/changelogs/changelog.yaml @@ -1137,3 +1137,17 @@ releases: name: vmware_host_user_manager namespace: '' release_date: '2022-02-16' + 2.2.0: + changes: + breaking_changes: + - vmware_vm_info - Add the posibility to get the configuration informations + of only one vm by name. (https://github.com/ansible-collections/community.vmware/pull/1241) + bugfixes: + - vmware_dvs_host - match the list of the host nics in the correct order based + on the uplink port name in vCenter (https://github.com/ansible-collections/community.vmware/issues/1242). + - vmware_guest_powerstate - `shutdownguest` power state is not idempotent (https://github.com/ansible-collections/community.vmware/pull/1227). + fragments: + - 1241-vmware_vm_info-add_the_posibility_to_get_only_one_vm_by_name.yaml + - 1243-vmware-dvs-host-uplink-ordering.yml + - fix_shutdownguest_state_idempotency.yml + release_date: '2022-03-26' diff --git a/changelogs/fragments/1241-vmware_vm_info-add_the_posibility_to_get_only_one_vm_by_name.yaml b/changelogs/fragments/1241-vmware_vm_info-add_the_posibility_to_get_only_one_vm_by_name.yaml deleted file mode 100644 index 230d082d90..0000000000 --- a/changelogs/fragments/1241-vmware_vm_info-add_the_posibility_to_get_only_one_vm_by_name.yaml +++ /dev/null @@ -1,3 +0,0 @@ -breaking_changes: - - vmware_vm_info - Add the posibility to get the configuration informations of only one vm by name. - (https://github.com/ansible-collections/community.vmware/pull/1241) diff --git a/changelogs/fragments/1243-vmware-dvs-host-uplink-ordering.yml b/changelogs/fragments/1243-vmware-dvs-host-uplink-ordering.yml deleted file mode 100644 index 42ce61b229..0000000000 --- a/changelogs/fragments/1243-vmware-dvs-host-uplink-ordering.yml +++ /dev/null @@ -1,3 +0,0 @@ -bugfixes: - - vmware_dvs_host - match the list of the host nics in the correct order based on the uplink port name in vCenter - (https://github.com/ansible-collections/community.vmware/issues/1242). diff --git a/changelogs/fragments/fix_shutdownguest_state_idempotency.yml b/changelogs/fragments/fix_shutdownguest_state_idempotency.yml deleted file mode 100644 index c11af16d7d..0000000000 --- a/changelogs/fragments/fix_shutdownguest_state_idempotency.yml +++ /dev/null @@ -1,2 +0,0 @@ -bugfixes: - - vmware_guest_powerstate - `shutdownguest` power state is not idempotent (https://github.com/ansible-collections/community.vmware/pull/1227). diff --git a/changelogs/fragments/vmware_vm_config_option.yml b/changelogs/fragments/vmware_vm_config_option.yml deleted file mode 100644 index 21ad4b0e01..0000000000 --- a/changelogs/fragments/vmware_vm_config_option.yml +++ /dev/null @@ -1,4 +0,0 @@ -minor_changes: - - vmware_vm_config_option - Add support_usb_controller, support_ethernet_card, support_disk_controller properties in output of getting VM default configs (https://github.com/ansible-collections/community.vmware/pull/1202). -deprecated_features: - - vmware_vm_config_option - Dict item names in result will be changed from strings joined with spaces to strings joined with underlines, e.g. `Guest fullname` will be changed to `guest_fullname` in version 3. diff --git a/docs/community.vmware.vmware_httpapi.rst b/docs/community.vmware.vmware_httpapi.rst index 6bfb530423..a00609b775 100644 --- a/docs/community.vmware.vmware_httpapi.rst +++ b/docs/community.vmware.vmware_httpapi.rst @@ -35,7 +35,7 @@ Status Authors ~~~~~~~ -- Abhijeet Kasurde (Akasurde) +- Abhijeet Kasurde (@Akasurde) .. hint:: diff --git a/docs/community.vmware.vmware_tools_connection.rst b/docs/community.vmware.vmware_tools_connection.rst index 8b4cf127b4..c82524183b 100644 --- a/docs/community.vmware.vmware_tools_connection.rst +++ b/docs/community.vmware.vmware_tools_connection.rst @@ -192,6 +192,8 @@ Parameters
VM username.
+
ansible_vmware_tools_user is used for connecting to the VM.
+
ansible_user is used by Ansible on the VM.
@@ -298,7 +300,7 @@ Status Authors ~~~~~~~ -- Deric Crago +- Deric Crago (@dericcrago) .. hint:: diff --git a/docs/community.vmware.vmware_vm_info_module.rst b/docs/community.vmware.vmware_vm_info_module.rst index f40ec03eb0..867bea87dc 100644 --- a/docs/community.vmware.vmware_vm_info_module.rst +++ b/docs/community.vmware.vmware_vm_info_module.rst @@ -230,6 +230,21 @@ Parameters
If set to true, please make sure Python >= 2.7.9 is installed on the given machine.
+ + +
+ vm_name + +
+ string +
+ + + + +
Name of the virtual machine to get related configurations information from.
+ +
@@ -284,6 +299,18 @@ Examples - debug: var: vminfo.virtual_machines + - name: Gather one specific VM + community.vmware.vmware_vm_info: + hostname: '{{ vcenter_hostname }}' + username: '{{ vcenter_username }}' + password: '{{ vcenter_password }}' + vm_name: 'vm_name_as_per_vcenter' + delegate_to: localhost + register: vm_info + + - debug: + var: vminfo.virtual_machines + - name: Gather only registered virtual machine templates community.vmware.vmware_vm_info: hostname: '{{ vcenter_hostname }}'