Init: mediaserver

This commit is contained in:
2023-02-08 12:13:28 +01:00
parent 848bc9739c
commit f7c23d4ba9
31914 changed files with 6175775 additions and 0 deletions

View File

@@ -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 }}"

View File

@@ -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 }}"

View File

@@ -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 }}"

View File

@@ -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 }}"
...

View File

@@ -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 }}"
...

View File

@@ -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 }}"
...

View File

@@ -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 }}"

View File

@@ -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 }}"

View File

@@ -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 }}"

View File

@@ -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 }}"

View File

@@ -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 }}"

View File

@@ -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 }}"

View File

@@ -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 }}"

View File

@@ -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 }}"

View File

@@ -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 }}"

View File

@@ -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 }}"

View File

@@ -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 }}"

View File

@@ -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 }}"

View File

@@ -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 }}"
...

View File

@@ -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 }}"