Are you interested in our Early Access Program (EAP)? This program allows you to preview code, test in your lab and provide feedback prior to General Availability (GA) release of all Infoblox products. If so, please click the link here.

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
2199     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
2200     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 )

Member
Posts: 1
2200     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