SSO Login is being implemented on this site. Existing users: Your existing password must be reset the first time you login using SSO. Click here to reset your password first before login. Your new username will be your email.

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
186     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: 179
186     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
186     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