Ansible Play to add a Host Address without changing the existing addresses

I am trying to add an additional address to an exisitng host record with an ansible playbook, I can not find an appropriate function either under the Nios Plugins under ansible 2.5 or under the infoblox.py functions. All of these seem to be intent on adding a new host record entirely. Currently everything I have tried seems to replace the existing host record with a new one that has the single IP address that I am trying to add. I have been able to successfully obtain the next record in a subnet, and then use that in a separate play, so I know that I have connectivity, and the api functionality is working. Any Help would be appreciated.

 

Tagged:

Answers

  • This is not currently supported. I would suggest opening a github issue (https://github.com/ansible/ansible/issues) with this as a feature request.

  • Is this feature actually supported from NIOS side, coz I have tried adding an IP address to existing host record and I get the error that: The record 'xyz' already exists. and this request I am firing directly via rest client and also via NIOS web UI. Can someone please update/clarify the behavior. Thanks

  • You should be able to add an IP address to an existing host record (both through REST and Grid Manager UI).

    It is, however, not possible to do this via Ansible and this is a known issue (as far as I know).