The Ansible module “vmware_portgroup” will incorrectly return a “changed”
condition, even when the arguments are unchanged.
The vmware_portgroup module does run correctly and changes the ESXi
portgroup settings as needed, but it always reports a “changed” state.
For example:
- name: Create portgroup Internal Network on vSwitch0
vmware_portgroup:
hostname: '{{ inventory_hostname }}'
username: '{{ vcenter_username }}'
password: '{{ vcenter_password }}'
esxi_hostname: '{{ inventory_hostname }}'
validate_certs: no
portgroup_name: 'Internal Network'
switch_name: 'vSwitch0'
state: present
delegate_to: localhost
If you run the task a second time, Ansible will report a “changed” state.
Ansible version: 2.7.5 (from CentOS 7.x epel repository)
yum package ansible.noarch
2.6.3-1.el7
Linux: CentOS 7.5.1804
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/7f2cdf80-ce62-4eb9-a343-e97c5d4baecb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.