diff options
Diffstat (limited to 'ansible_collections/infoblox/nios_modules/playbooks')
20 files changed, 390 insertions, 0 deletions
diff --git a/ansible_collections/infoblox/nios_modules/playbooks/create_a_record.yaml b/ansible_collections/infoblox/nios_modules/playbooks/create_a_record.yaml new file mode 100644 index 00000000..29245981 --- /dev/null +++ b/ansible_collections/infoblox/nios_modules/playbooks/create_a_record.yaml @@ -0,0 +1,19 @@ +--- + +- hosts: localhost + vars: + nios_provider: + host: 10.36.118.2 + username: cloudadmin + password: admin + + connection: local + tasks: + - name: Create Nios A record Test + infoblox.nios_modules.nios_a_record: + name: v55.ansibletestzone.com + view: ansibleDnsView + ipv4: 192.168.11.251 + comment: Created with Ansible + state: present + provider: "{{ nios_provider }}" diff --git a/ansible_collections/infoblox/nios_modules/playbooks/create_cname_record.yaml b/ansible_collections/infoblox/nios_modules/playbooks/create_cname_record.yaml new file mode 100644 index 00000000..1c59c7a6 --- /dev/null +++ b/ansible_collections/infoblox/nios_modules/playbooks/create_cname_record.yaml @@ -0,0 +1,19 @@ +--- + +- hosts: localhost + vars: + nios_provider: + host: 10.36.118.2 + username: cloudadmin + password: admin + + connection: local + tasks: + - name: Create Nios CNAME record + infoblox.nios_modules.nios_cname_record: + name: cname.ansibletestzone.com + canonical: realhost.ansible.com + view: ansibleDnsView + comment: Created with Ansible + state: present + provider: "{{ nios_provider }}" diff --git a/ansible_collections/infoblox/nios_modules/playbooks/create_dns_view.yml b/ansible_collections/infoblox/nios_modules/playbooks/create_dns_view.yml new file mode 100644 index 00000000..834a7c9a --- /dev/null +++ b/ansible_collections/infoblox/nios_modules/playbooks/create_dns_view.yml @@ -0,0 +1,20 @@ +--- + +- hosts: localhost + vars: + nios_provider: + host: 10.36.118.2 + username: cloudadmin + password: admin + + connection: local + tasks: + - name: create DNS view + infoblox.nios_modules.nios_dns_view: + name: ansibleDnsView + network_view: ansibleCollectionsView + extattrs: + Site: Test Site + comment: Created with Ansible + state: present + provider: "{{ nios_provider }}" diff --git a/ansible_collections/infoblox/nios_modules/playbooks/create_dtc_lbdn.yml b/ansible_collections/infoblox/nios_modules/playbooks/create_dtc_lbdn.yml new file mode 100644 index 00000000..9cbf3ad2 --- /dev/null +++ b/ansible_collections/infoblox/nios_modules/playbooks/create_dtc_lbdn.yml @@ -0,0 +1,29 @@ +--- +- hosts: localhost + vars: + nios_provider: + host: 10.196.205.10 + username: cloudadmin + password: infoblox + wapi_version: "2.12" + + connection: local + tasks: + - name: 'create DTC LBDN' + infoblox.nios_modules.nios_dtc_lbdn: + name: LBDN1 + lb_method: GLOBAL_AVAILABILITY + pools: + - pool: Pool1 + ratio: 2 + ttl: 100 + auth_zones: + - 'demo.com' + patterns: + - '*.demo.com' + types: + - A + comment: Created with Ansible + state: present + provider: "{{ nios_provider }}" +... diff --git a/ansible_collections/infoblox/nios_modules/playbooks/create_dtc_pool.yml b/ansible_collections/infoblox/nios_modules/playbooks/create_dtc_pool.yml new file mode 100644 index 00000000..96a59f29 --- /dev/null +++ b/ansible_collections/infoblox/nios_modules/playbooks/create_dtc_pool.yml @@ -0,0 +1,25 @@ +--- +- hosts: localhost + vars: + nios_provider: + host: 10.196.205.10 + username: cloudadmin + password: infoblox + wapi_version: "2.12" + + connection: local + tasks: + - name: 'create DTC Pool' + infoblox.nios_modules.nios_dtc_pool: + name: Pool1 + lb_preferred_method: ROUND_ROBIN + servers: + - server: Server1 + ratio: 1 + monitors: + - name: monitor1 + type: icmp + comment: Created with Ansible + state: present + provider: "{{ nios_provider }}" +... diff --git a/ansible_collections/infoblox/nios_modules/playbooks/create_dtc_server.yml b/ansible_collections/infoblox/nios_modules/playbooks/create_dtc_server.yml new file mode 100644 index 00000000..dd0c0388 --- /dev/null +++ b/ansible_collections/infoblox/nios_modules/playbooks/create_dtc_server.yml @@ -0,0 +1,19 @@ +--- +- hosts: localhost + vars: + nios_provider: + host: 10.196.205.10 + username: cloudadmin + password: infoblox + wapi_version: "2.12" + + connection: local + tasks: + - name: 'create DTC server' + infoblox.nios_modules.nios_dtc_server: + name: Server1 + host: 10.196.200.74 + comment: Created with Ansible + state: present + provider: "{{ nios_provider }}" +... diff --git a/ansible_collections/infoblox/nios_modules/playbooks/create_mx_record.yaml b/ansible_collections/infoblox/nios_modules/playbooks/create_mx_record.yaml new file mode 100644 index 00000000..ac8c8f34 --- /dev/null +++ b/ansible_collections/infoblox/nios_modules/playbooks/create_mx_record.yaml @@ -0,0 +1,20 @@ +--- + +- hosts: localhost + vars: + nios_provider: + host: 10.36.118.2 + username: cloudadmin + password: admin + + connection: local + tasks: + - name: Create Nios MX record + infoblox.nios_modules.nios_mx_record: + name: mx.ansibletestzone.com + mx: mailhost.ansible.com + view: ansibleDnsView + preference: 0 + comment: Created with Ansible + state: present + provider: "{{ nios_provider }}" diff --git a/ansible_collections/infoblox/nios_modules/playbooks/create_network.yml b/ansible_collections/infoblox/nios_modules/playbooks/create_network.yml new file mode 100644 index 00000000..c309105f --- /dev/null +++ b/ansible_collections/infoblox/nios_modules/playbooks/create_network.yml @@ -0,0 +1,23 @@ +--- + +- hosts: localhost + vars: + nios_provider: + host: 10.36.118.2 + username: cloudadmin + password: admin + + connection: local + tasks: + - name: create network + infoblox.nios_modules.nios_network: + network: 10.0.0.0/24 + network_view: ansibleCollectionsView + options: + - name: domain-name + value: infoblox-ansible.com + extattrs: + Site: Test Site + comment: Created with Ansible + state: present + provider: "{{ nios_provider }}" diff --git a/ansible_collections/infoblox/nios_modules/playbooks/create_network_view.yml b/ansible_collections/infoblox/nios_modules/playbooks/create_network_view.yml new file mode 100644 index 00000000..ca372187 --- /dev/null +++ b/ansible_collections/infoblox/nios_modules/playbooks/create_network_view.yml @@ -0,0 +1,19 @@ +--- + +- hosts: localhost + vars: + nios_provider: + host: 10.36.118.2 + username: cloudadmin + password: admin + + connection: local + tasks: + - name: create network view + infoblox.nios_modules.nios_network_view: + name: ansibleCollectionsView + extattrs: + Site: Test Site + comment: Created with Ansible + state: present + provider: "{{ nios_provider }}" diff --git a/ansible_collections/infoblox/nios_modules/playbooks/create_txt_record.yaml b/ansible_collections/infoblox/nios_modules/playbooks/create_txt_record.yaml new file mode 100644 index 00000000..d0a28058 --- /dev/null +++ b/ansible_collections/infoblox/nios_modules/playbooks/create_txt_record.yaml @@ -0,0 +1,19 @@ +--- + +- hosts: localhost + vars: + nios_provider: + host: 10.36.118.2 + username: cloudadmin + password: admin + + connection: local + tasks: + - name: Create Nios TXT record + infoblox.nios_modules.nios_txt_record: + name: one.txt.ansibletestzone.com + text: example_text45 + view: ansibleDnsView + comment: Created with Ansible + state: present + provider: "{{ nios_provider }}" diff --git a/ansible_collections/infoblox/nios_modules/playbooks/create_zone.yml b/ansible_collections/infoblox/nios_modules/playbooks/create_zone.yml new file mode 100644 index 00000000..63b874e2 --- /dev/null +++ b/ansible_collections/infoblox/nios_modules/playbooks/create_zone.yml @@ -0,0 +1,21 @@ +--- + +- hosts: localhost + vars: + nios_provider: + host: 10.36.118.2 + username: cloudadmin + password: admin + wapi_version: 2.1 + + connection: local + tasks: + - name: create zone + infoblox.nios_modules.nios_zone: + name: ansibletestzone.com + view: ansibleDnsView + extattrs: + Site: Test Site + comment: Created with Ansible + state: present + provider: "{{ nios_provider }}" diff --git a/ansible_collections/infoblox/nios_modules/playbooks/delete_cname_record.yaml b/ansible_collections/infoblox/nios_modules/playbooks/delete_cname_record.yaml new file mode 100644 index 00000000..50c55105 --- /dev/null +++ b/ansible_collections/infoblox/nios_modules/playbooks/delete_cname_record.yaml @@ -0,0 +1,18 @@ +--- + +- hosts: localhost + vars: + nios_provider: + host: 10.36.118.2 + username: cloudadmin + password: admin + + connection: local + tasks: + - name: Create Nios CNAME record + infoblox.nios_modules.nios_cname_record: + name: cname.ansible.com + canonical: realhost.ansible.com + comment: Created with Ansible + state: absent + provider: "{{ nios_provider }}" diff --git a/ansible_collections/infoblox/nios_modules/playbooks/delete_dnsview.yml b/ansible_collections/infoblox/nios_modules/playbooks/delete_dnsview.yml new file mode 100644 index 00000000..bb5e22a2 --- /dev/null +++ b/ansible_collections/infoblox/nios_modules/playbooks/delete_dnsview.yml @@ -0,0 +1,17 @@ +--- + +- hosts: localhost + vars: + nios_provider: + host: 10.36.118.2 + username: cloudadmin + password: admin + + connection: local + tasks: + - name: delete DNS view + infoblox.nios_modules.nios_dns_view: + name: ansibleDnsView + network_view: ansibleNetView + state: absent + provider: "{{ nios_provider }}" diff --git a/ansible_collections/infoblox/nios_modules/playbooks/delete_mx_record.yaml b/ansible_collections/infoblox/nios_modules/playbooks/delete_mx_record.yaml new file mode 100644 index 00000000..3b269a25 --- /dev/null +++ b/ansible_collections/infoblox/nios_modules/playbooks/delete_mx_record.yaml @@ -0,0 +1,19 @@ +--- + +- hosts: localhost + vars: + nios_provider: + host: 10.36.118.2 + username: cloudadmin + password: admin + + connection: local + tasks: + - name: Create Nios MX record + infoblox.nios_modules.nios_mx_record: + name: ansible.com + mx: mailhost.ansible.com + preference: 0 + comment: Created with Ansible + state: absent + provider: "{{ nios_provider }}" diff --git a/ansible_collections/infoblox/nios_modules/playbooks/delete_network.yml b/ansible_collections/infoblox/nios_modules/playbooks/delete_network.yml new file mode 100644 index 00000000..304dccc0 --- /dev/null +++ b/ansible_collections/infoblox/nios_modules/playbooks/delete_network.yml @@ -0,0 +1,17 @@ +--- + +- hosts: localhost + vars: + nios_provider: + host: 10.60.27.4 + username: admin + password: admin + + connection: local + tasks: + - name: delete network + infoblox.nios_modules.nios_network: + network: 10.0.0.0/24 + network_view: ansibleNetView + state: absent + provider: "{{ nios_provider }}" diff --git a/ansible_collections/infoblox/nios_modules/playbooks/delete_network_view.yml b/ansible_collections/infoblox/nios_modules/playbooks/delete_network_view.yml new file mode 100644 index 00000000..e0a7b119 --- /dev/null +++ b/ansible_collections/infoblox/nios_modules/playbooks/delete_network_view.yml @@ -0,0 +1,16 @@ +--- + +- hosts: localhost + vars: + nios_provider: + host: 10.60.27.4 + username: cloudadmin + password: admin + + connection: local + tasks: + - name: delete network view + infoblox.nios_modules.nios_network_view: + name: ansibleNetView + state: absent + provider: "{{ nios_provider }}" diff --git a/ansible_collections/infoblox/nios_modules/playbooks/delete_txt_record.yaml b/ansible_collections/infoblox/nios_modules/playbooks/delete_txt_record.yaml new file mode 100644 index 00000000..376e2973 --- /dev/null +++ b/ansible_collections/infoblox/nios_modules/playbooks/delete_txt_record.yaml @@ -0,0 +1,19 @@ +--- + +- hosts: localhost + vars: + nios_provider: + host: 10.36.118.2 + username: cloudadmin + password: admin + + connection: local + tasks: + - name: Create Nios TXT record + infoblox.nios_modules.nios_txt_record: + name: fqdn.txt.ansible.com + text: example_text + view: default + comment: Created with Ansible + state: absent + provider: "{{ nios_provider }}" diff --git a/ansible_collections/infoblox/nios_modules/playbooks/delete_zone.yml b/ansible_collections/infoblox/nios_modules/playbooks/delete_zone.yml new file mode 100644 index 00000000..ca50801a --- /dev/null +++ b/ansible_collections/infoblox/nios_modules/playbooks/delete_zone.yml @@ -0,0 +1,17 @@ +--- + +- hosts: localhost + vars: + nios_provider: + host: 10.36.118.2 + username: cloudadmin + password: admin + + connection: local + tasks: + - name: delete zone + infoblox.nios_modules.nios_zone: + name: ansiblezone.com + view: ansibleDnsView + state: absent + provider: "{{ nios_provider }}" diff --git a/ansible_collections/infoblox/nios_modules/playbooks/restart_services.yml b/ansible_collections/infoblox/nios_modules/playbooks/restart_services.yml new file mode 100644 index 00000000..23bbe590 --- /dev/null +++ b/ansible_collections/infoblox/nios_modules/playbooks/restart_services.yml @@ -0,0 +1,15 @@ +--- +- hosts: localhost + vars: + nios_provider: + host: 10.196.205.10 + username: cloudadmin + password: infoblox + wapi_version: "2.12" + + connection: local + tasks: + - name: Restart Services + nios_restartservices: + provider: "{{ nios_provider }}" +... diff --git a/ansible_collections/infoblox/nios_modules/playbooks/update_a_record.yml b/ansible_collections/infoblox/nios_modules/playbooks/update_a_record.yml new file mode 100644 index 00000000..2630c3bb --- /dev/null +++ b/ansible_collections/infoblox/nios_modules/playbooks/update_a_record.yml @@ -0,0 +1,19 @@ +--- + +- hosts: localhost + vars: + nios_provider: + host: 10.34.34.175 + username: cloudadmin + password: admin + + connection: local + tasks: + - name: Update Nios A record + infoblox.nios_modules.nios_a_record: + name: {new_name: v7.testzone.com, old_name: v7.testzone.com} + view: testDnsView + ipv4: 1.1.11.2 + comment: Created with Ansible + state: present + provider: "{{ nios_provider }}" |