From 6537d1bc0f337c9e80f963230d42eafc3b16b7e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A9ri=20Le=20Bouder?= Date: Wed, 12 Jun 2019 04:50:19 -0400 Subject: [PATCH] vmware_host_ipv6: only changed when changed (#57702) Do not return the `changed` status when a reboot is required. The configuration is applied and so the configuration changed has already been done. --- lib/ansible/modules/cloud/vmware/vmware_host_ipv6.py | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/ansible/modules/cloud/vmware/vmware_host_ipv6.py b/lib/ansible/modules/cloud/vmware/vmware_host_ipv6.py index b1270041b2f..e2affb16954 100644 --- a/lib/ansible/modules/cloud/vmware/vmware_host_ipv6.py +++ b/lib/ansible/modules/cloud/vmware/vmware_host_ipv6.py @@ -136,7 +136,6 @@ class VmwareHostIPv6(PyVmomi): results['result'][host.name]['msg'] = "IPv6 is already enabled and active for host '%s'" % \ host.name if not host_network_info.ipV6Enabled: - changed = True results['result'][host.name]['msg'] = ("IPv6 is already enabled for host '%s', but a reboot" " is required!" % host.name) # Enable IPv6