Infoblox’s global team of threat hunters uncovers a DNS operation with the ability to bypass traditional security measures and control the Great Firewall of China. Read about “Muddling Meerkat” and the many other threat actors discovered by Infoblox Threat Intel 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
1425     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
1425     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
1425     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