diff --git a/playbooks/create_network.yml b/playbooks/create_network.yml index de11bc0f..38a26308 100644 --- a/playbooks/create_network.yml +++ b/playbooks/create_network.yml @@ -13,6 +13,10 @@ infoblox.nios_modules.nios_network: network: 10.0.0.0/24 network_view: ansibleCollectionsView + use_logic_filter_rules: true + logic_filter_rules: + - filter: PXE-UEFI + type: Option options: - name: domain-name value: infoblox-ansible.com diff --git a/playbooks/create_nsgroup_delegation.yml b/playbooks/create_nsgroup_delegation.yml new file mode 100644 index 00000000..061c3927 --- /dev/null +++ b/playbooks/create_nsgroup_delegation.yml @@ -0,0 +1,24 @@ +--- +- name: Infoblox Nameserver Configuration + hosts: localhost + vars: + nios_provider: + host: 10.36.118.2 + username: cloudadmin + password: admin + + connection: local + tasks: + - name: create infoblox nameserver delegation group + infoblox.nios_modules.nios_nsgroup_delegation: + name: my-delegation-group + delegate_to: + - name: first + address: 192.168.0.10 + - name: second + address: 192.168.0.20 + comment: "this is a delegation nameserver group" + extattrs: + Site: Test Site + state: present + provider: "{{ nios_provider }}" \ No newline at end of file diff --git a/playbooks/create_nsgroup_forwardingmember.yml b/playbooks/create_nsgroup_forwardingmember.yml new file mode 100644 index 00000000..96ae07c7 --- /dev/null +++ b/playbooks/create_nsgroup_forwardingmember.yml @@ -0,0 +1,34 @@ +--- +- name: Infoblox Nameserver Configuration + hosts: localhost + vars: + nios_provider: + host: 10.36.118.2 + username: cloudadmin + password: admin + + connection: local + tasks: + - name: create infoblox nameserver forwarding member group with external forwarders + infoblox.nios_modules.nios_nsgroup_forwardingmember: + name: my-forwardingmember-group + comment: "this is a forwarding member nameserver group with external forwarders" + extattrs: + Site: Test Site + forwarding_servers: + - name: infoblox.cloud-ansible-client-nios-gm + use_override_forwarders: true + forwarders_only: true + forward_to: + - name: ns1 + address: 192.168.10.1 + - name: ns2 + address: 192.168.10.2 + - name: infoblox.cloud-ansible-client-nios-mem1 + use_override_forwarders: true + forwarders_only: false + forward_to: + - name: ns3 + address: 192.168.10.3 + state: present + provider: "{{ nios_provider }}" \ No newline at end of file diff --git a/playbooks/create_nsgroup_forwardstubserver.yml b/playbooks/create_nsgroup_forwardstubserver.yml new file mode 100644 index 00000000..14454ab1 --- /dev/null +++ b/playbooks/create_nsgroup_forwardstubserver.yml @@ -0,0 +1,24 @@ +--- +- name: Infoblox Nameserver Configuration + hosts: localhost + vars: + nios_provider: + host: 10.36.118.2 + username: cloudadmin + password: admin + + connection: local + tasks: + - name: create infoblox nameserver forward/stub group + infoblox.nios_modules.nios_nsgroup_forwardstubserver: + name: new-forwardstub-group + comment: "this is a forward/stub nameserver group" + extattrs: + Site: Test Site + external_servers: + - name: first + address: 192.168.0.10 + - name: second + address: 192.168.0.20 + state: present + provider: "{{ nios_provider }}" \ No newline at end of file diff --git a/playbooks/create_nsgroup_stubmember.yml b/playbooks/create_nsgroup_stubmember.yml new file mode 100644 index 00000000..e545c3c7 --- /dev/null +++ b/playbooks/create_nsgroup_stubmember.yml @@ -0,0 +1,22 @@ +--- +- name: Infoblox Nameserver Configuration + hosts: localhost + vars: + nios_provider: + host: 10.36.118.2 + username: cloudadmin + password: admin + + connection: local + tasks: + - name: create infoblox nameserver stub member group + infoblox.nios_modules.nios_nsgroup_stubmember: + name: my-stubmember-group + comment: "this is a stub member nameserver group" + extattrs: + Site: Test Site + stub_members: + - name: infoblox.cloud-ansible-client-nios-gm + - name: infoblox.cloud-ansible-client-nios-mem1 + state: present + provider: "{{ nios_provider }}" \ No newline at end of file diff --git a/plugins/modules/nios_host_record.py b/plugins/modules/nios_host_record.py index 66f00549..ac5f6412 100644 --- a/plugins/modules/nios_host_record.py +++ b/plugins/modules/nios_host_record.py @@ -262,6 +262,24 @@ password: admin connection: local + +- name: Create an ipv4 host record over DHCP with PXE server + infoblox.nios_modules.nios_host_record: + name: host.ansible.com + ipv4: + - address: 192.168.10.1 + dhcp: true + mac: 00-80-C8-E3-4C-BD + use_nextserver: true + nextserver: pxe-server.com + state: present + provider: + host: "{{ inventory_hostname_short }}" + username: admin + password: admin + connection: local + + - name: Dynamically add host record to next available ip infoblox.nios_modules.nios_host_record: name: host.ansible.com