diff --git a/lib/ansible/modules/cloud/vmware/vmware_host_config_facts.py b/lib/ansible/modules/cloud/vmware/vmware_host_config_facts.py index ccda8ce19f..605689d753 100644 --- a/lib/ansible/modules/cloud/vmware/vmware_host_config_facts.py +++ b/lib/ansible/modules/cloud/vmware/vmware_host_config_facts.py @@ -57,7 +57,21 @@ EXAMPLES = r''' delegate_to: localhost ''' -RETURN = r'''# +RETURN = r''' +hosts_facts: + description: + - dict with hostname as key and dict with host config facts + returned: always + type: dict + sample: { + "10.76.33.226": { + "Annotations.WelcomeMessage": "", + "BufferCache.FlushInterval": 30000, + "BufferCache.HardMaxDirty": 95, + "BufferCache.PerFileHardMaxDirty": 50, + "BufferCache.SoftMaxDirty": 15, + } + } ''' from ansible.module_utils.basic import AnsibleModule diff --git a/lib/ansible/modules/cloud/vmware/vmware_host_service_facts.py b/lib/ansible/modules/cloud/vmware/vmware_host_service_facts.py index be9108409d..696cff6a80 100644 --- a/lib/ansible/modules/cloud/vmware/vmware_host_service_facts.py +++ b/lib/ansible/modules/cloud/vmware/vmware_host_service_facts.py @@ -61,7 +61,32 @@ EXAMPLES = r''' register: host_services ''' -RETURN = r'''# +RETURN = r''' +host_service_facts: + description: + - dict with hostname as key and dict with host service config facts + returned: always + type: dict + sample: { + "10.76.33.226": [ + { + "key": "DCUI", + "label": "Direct Console UI", + "policy": "on", + "required": false, + "running": true, + "uninstallable": false + }, + { + "key": "TSM", + "label": "ESXi Shell", + "policy": "off", + "required": false, + "running": false, + "uninstallable": false + }, + ] + } ''' from ansible.module_utils.basic import AnsibleModule diff --git a/lib/ansible/modules/cloud/vmware/vmware_portgroup_facts.py b/lib/ansible/modules/cloud/vmware/vmware_portgroup_facts.py index 8f973e653d..64cca06249 100644 --- a/lib/ansible/modules/cloud/vmware/vmware_portgroup_facts.py +++ b/lib/ansible/modules/cloud/vmware/vmware_portgroup_facts.py @@ -59,7 +59,7 @@ EXAMPLES = r''' ''' RETURN = r''' -hosts_firewall_facts: +hosts_portgroup_facts: description: metadata about host's portgroup configuration returned: on success type: dict