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