Thanks for the reply Abhi
What i noticed is it does update the file if there is no entry like blow is the o/p
TASK [Update the Inventory] *********************************************************************************************************************************************************
changed: [localhost] => (item=xx)
but if the entry already present in more than 1 group say .. then it does not update the file & the output is
TASK [Update the Inventory] *********************************************************************************************************************************************************
ok: [localhost] => (item=xxx)
So if a fresh box it is ok ( ie never had been provisioned )