Introducing SOC Insights for BloxOne Threat Defense: Boost your SOC efficiency with AI-driven insights to eliminate manual work and accelerate investigation and response times. Read the blog announcement 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
1348     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
1348     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
1348     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