Hi,
actually gather facts are not very useful. Is it possible to also/instead
include hosts facts which can we get via playbook and vsphere quest task? I
think these informations will be useful for everyone
I'm not a programmer so creating/modifying actual python script is not an
easy way for me :-) but it should be easy as it use same python vsphere
API, so it's only a question what should be get from vsphere and save in
local cache.
I really appreciate any help/lead you can provide
Vasek
NOW (not sure who can use such info):
~/.cache/ansible/SERVERNAME
{"vmware_disableSnapshotsSupported": "False", "vmware_diskSharesSupported":
"True", "vmware_bootOptionsSupported": "True",
"vmware_settingVideoRamSizeSupported": "True",
"vmware_lockSnapshotsSupported": "False", "vmware_recordReplaySupported":
"True", "vmware_snapshotConfigSupported": "True",
"vmware_multipleSnapshotsSupported": "True",
"vmware_settingScreenResolutionSupported": "False",
"vmware_settingDisplayTopologySupported": "False",
"vmware_poweredOffSnapshotsSupported": "True",
"vmware_toolsAutoUpdateSupported": "True",
"vmware_s1AcpiManagementSupported": "True",
"vmware_consolePreferencesSupported": "False",
"vmware_memorySnapshotsSupported": "True",
"vmware_npivWwnOnNonRdmVmSupported": "True", "vmware_vmNpivWwnSupported":
"True", "vmware_name": "SERVERNAME", "vmware_vmNpivWwnUpdateSupported":
"True", "vmware_swapPlacementSupported": "True",
"vmware_snapshotOperationsSupported": "True",
"vmware_vmNpivWwnDisableSupported": "True",
"vmware_toolsSyncTimeSupported": "True", "vmware_cpuFeatureMaskSupported":
"True", "vmware_bootRetryOptionsSupported": "True",
"vmware_revertToSnapshotSupported": "True",
"vmware_quiescedSnapshotsSupported": "True",
"vmware_changeTrackingSupported": "True",
"vmware_virtualMmuUsageSupported": "True"}
Better (get via vsphere quest task in playbook):
{"vmguest facts are {'invocation': {'module_name': u'vsphere_guest',
'module_args': ''}, u'changed': False, u'ansible_facts': {u'hw_name':
u'SERVERNAME', u'hw_processor_count': 4, u'hw_memtotal_mb': 4096,
u'module_hw': True, u'hw_guest_full_name': u'Red Hat Enterprise Linux 6
(64-bit)', u'hw_guest_id': u'rhel6_64Guest', u'hw_eth0': {u'macaddress':
u'XXXXX', u'label': u'Network adapter 1', u'addresstype': u'assigned',
u'summary': u'vlan_XXXXX', u'macaddress_dash': u'XXXXX'},
u'hw_product_uuid': u'XXXXX'}}"
--
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/9072b1a1-2a1d-420f-9f00-b60434b2a4a1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.