THE GAME HAS CHANGED

Introducing Infoblox Universal DDI ManagementTM

Watch the launch to discover the new era of management for critical network services. Watch Now

API & Integration, DevOps,NetOps,SecOps

Reply

notable to delete the HOST and A - record in infoblox using ansible module (nios_host_record )

Techie
Posts: 9
1978     0

nios_host_record 

state: absent is not working in ansible.

getting the output as 

ok: 1/1 [localhost] => {
"ipv4_host_delete_result": {
"changed": false,
"failed": false
}
}

ansible --version
ansible 2.9.0

python version = 3.6.8

Re: notable to delete the HOST and A - record in infoblox using ansible module (nios_host_record )

Adviser
Posts: 181
1978     0

Hi,

 

Could you also please share the playbook you are using?

 

Regards,

Krishna

Re: notable to delete the HOST and A - record in infoblox using ansible module (nios_host_record )

New Member
Posts: 1
1978     0
Unable to delete host records using below playbook

 

 - name: Remove host record from infoblox
    nios_host_record:
      name: "{{ item }}.{{ vm_infoblox }}"
      state: absent
      provider:
        host: "{{ infoblox_endpoint }}"
        username: "{{ infoblox_username }}"
        password: "{{ infoblox_password }}"
    loop: "{{ vm_hostname }}"
    register: rec_deleted

  - debug:
      var: rec_deleted
Showing results for 
Search instead for 
Did you mean: 

Recommended for You