Reply

How to reclaim or unreserve IP Address using Ansible?

Member
Posts: 1
623     0

Hi ,

 

Can somone help me in giving an insight on unreserve or reclaim IP address for infoblox using Ansible module?

 

Regards,

Vishal

 

 

Re: How to reclaim or unreserve IP Address using Ansible?

Member
Posts: 2
623     0

I would also like to know how to reclaim addresses using Ansible.  Any help will be greatly appreciated.

Re: How to reclaim or unreserve IP Address using Ansible?

Adviser
Posts: 164
623     0

Hi,

 

If you would like to delete a fixed address, you can do so using the below playbook sample. The state parameter indicates that the mentioned fixed address needs to be reclaimed.

---

- hosts: localhost
  vars:
    nios_provider:
      host: grid-master
      username: admin
      password: pwd

  connection: local
  tasks:
   - name: delete ipv4 dhcp fixed address
     nios_fixed_address:
       name: ipv4_fixed
       ipaddr: 1.1.1.10
       mac: 08:6d:41:e8:fd:e8
       network: 1.1.1.0/24
       network_view: default
       state: absent
       provider: "{{ nios_provider }}"

Thanks & Regards,

Krishna Vasudevan

Re: How to reclaim or unreserve IP Address using Ansible?

Member
Posts: 2
623     0

Hi Krishna,

 

Thank you for your response.

 

In situations where there are multiple record types (A, PTR, TXT) tied to an address, is there a playbook that can be run to clear all the records at once by reclaiming the IP address?

Showing results for 
Search instead for 
Did you mean: 

Recommended for You