wwt.ansible_dnac.dnac_dhcp (1.1.6) — module

Add or Delete DHCP Server(s)

| "added in version" 2.5 of wwt.ansible_dnac"

Authors: Jeff Andiorio (@jandiorio)

preview | supported by community

Install collection

Install with ansible-galaxy collection install wwt.ansible_dnac:==1.1.6


Add to requirements.yml

  collections:
    - name: wwt.ansible_dnac
      version: 1.1.6

Description

Add or delete DHCP Server(s) in the Cisco DNA Center Design Workflow. \ The DHCP Severs can be different values at different levels in the group hierarchy.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.

- name: create dhcp server
  dnac_dhcp:
    host: 10.253.177.230
    port: 443
    username: "{{username}}"
    password: "{{password}}"
    state: present
    dhcp_server: 192.168.200.1 192.168.200.2
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: delete dhcp server
  dnac_dhcp:
    host: 10.253.177.230
    port: 443
    username: "{{username}}"
    password: "{{password}}"
    state: absent
    dhcp_server: 192.168.200.1 192.168.200.2

Inputs

    
host:
    description:
    - Host is the target Cisco DNA Center controller to execute against.
    required: true

port:
    choices:
    - 80
    - 443
    default: 443
    description:
    - Port is the TCP port for the HTTP connection.
    required: false

state:
    choices:
    - present
    - absent
    default: present
    description:
    - State provides the action to be executed using the terms present, absent, etc.
    required: false

timeout:
    default: 30
    description:
    - The timeout provides a value for how long to wait for the executed command complete.
    required: false

use_ssl:
    choices:
    - true
    - false
    default: true
    description:
    - Enter the boolean value for whether to use SSL or not.
    required: false

password:
    description:
    - Provide the password for connection to the Cisco DNA Center Controller.
    required: true

username:
    description:
    - Provide the username for the connection to the Cisco DNA Center Controller.
    required: true

use_proxy:
    choices:
    - true
    - false
    default: true
    description:
    - Enter a boolean value for whether to use proxy or not.
    required: false

group_name:
    default: Global
    description:
    - group_name is the name of the group in the hierarchy where you would like to apply
      the dhcp_server.
    required: false

dhcp_servers:
    description:
    - IP address of the DHCP Server to manipulate.
    required: true
    type: list

validate_certs:
    choices:
    - true
    - false
    default: true
    description:
    - Specify if verifying the certificate is desired.
    required: false

Outputs

previous:
  description: Configuration from DNA Center prior to any changes.
  returned: success
  sample:
  - groupUuid: 91404471-9c8d-492c-9c4c-230c7fd54bf9
    inheritedGroupName: Global
    inheritedGroupUuid: '-1'
    instanceType: ip
    instanceUuid: d069b8ac-39c6-4379-98d9-ac198675c410
    key: dhcp.server
    namespace: global
    type: ip.address
    value:
    - 192.168.200.1
    - 192.168.200.2
    version: 48
  type: list
proprosed:
  description: Configuration to be sent to DNA Center.
  returned: success
  sample:
  - groupUuid: 91404471-9c8d-492c-9c4c-230c7fd54bf9
    instanceType: ip
    key: dhcp.server
    namespace: global
    type: ip.address
    value:
    - 192.168.200.1
    - 192.168.200.2
  type: list