Reply

Ansible lookup zone data?

New Member
Posts: 5
1120     1

I can lookup things like A records or AAAA records using a keyword like 'record:aaaa'. Is there a keyword I can use to lookup all of the DNS zones and how they are configured?

 

Here is an example of looking up a host record but I want to lookup all of the DNS zones

 

- name: get a host record
  ansible.builtin.set_fact:
    host: "{{ lookup('infoblox.nios_modules.nios_lookup', 'record:host', filter={'name': 'hostname.ansible.com'}) }}"

Re: Ansible lookup zone data?

New Member
Posts: 5
1121     1

I have resorted to pulling the zone data from a csv export because I have a project that needs to be completed but it would still be nice to know if this is possible with Ansible and lookup.

Showing results for 
Search instead for 
Did you mean: 

Recommended for You