summaryrefslogtreecommitdiffstats
path: root/ansible_collections/cisco/dnac/playbooks/global_pool.yml
blob: 27aa62605d9f2498ec952cc5b7d4e186d3727fdc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
---
- hosts: dnac_servers
  vars_files:
    - credentials.yml
  gather_facts: false
  tasks:
    - name: Find discovery
      cisco.dnac.global_pool:
        dnac_host: "{{ dnac_host }}"
        dnac_username: "{{ dnac_username }}"
        dnac_password: "{{ dnac_password }}"
        dnac_verify: "{{ dnac_verify }}"
        dnac_version: "{{ dnac_version }}"
        dnac_debug: "{{ dnac_debug }}"
        state: present
        # id: 1bf5ecf3-be14-48fb-b724-df801bc61172
        settings:
          ippool:
            - IpAddressSpace: string
              dhcpServerIps: []
              dnsServerIps: []
              gateway: ""
              ipPoolCidr: 30.0.0.0/8
              ipPoolName: v4pool-test2
              type: Generic
      register: discovery_range_result