You could override the values by combining it with a specially crafter
dictionary, or loop over it, etc.
How exactly you do this depends on the data structure, but the module
documentation does not mention any such custom attributes.
If you have an example of your playbook and the resulting data structure?
Now why OS ? That is as the OS seen by vCenter is say Ubuntu .,… but it does not tell if that is Ubuntu18.04 or Ubuntu20.04 … so i have added them manually for now… but looking for way to Automate that.
The power of ansible is it can talk on OS level & Vmware powercli does only on vCenter level
vCenter sees OS os with Vmwre-tools as CentOS7 … ok gr8 … but when it comes to say Ubuntu it simply says Ubuntu 64 bit & not Ubuntu18
Now we know with Ansible “fatcs & filter” we can get OS details … so that can somehow read & push into custom attributes ? If yes that will be awesome.
ansible all -m setup -a “filter=ansible_distribution_version” -o
Can you be more clear in what you are actually trying to achieve?
What problem are you exactly having?
Share a playbook or inventory that does not do what you want, for example.