wwt.ansible_dnac.dnac_site (1.1.6) — module

Add or Delete sites in DNA Center

| "added in version" 2.8 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 sites in the network hierarchy within Cisco DNA Center controller.


Requirements

Usage examples

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

  - name: create areas
    dnac_site:
      host: "{{ inventory_hostname }}"
      port: '443'
      username: "{{ username }}"
      password: "{{ password }}"
      state: "{{ desired_state }}"
      name: Site-1
      site_type: area
      parent_name: Global
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
  - name: create buildings
    dnac_site:
      host: "{{ inventory_hostname }}"
      port: '443'
      username: "{{ username }}"
      password: "{{ password }}"
      state: "{{ desired_state }}"
      name: Building-1
      site_type: building
      parent_name: Site-a
      address: 1 World Wide Way, St Louis, Mo
      latitude: 38.540450
      longitude: -90.443660
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
  - name: create floors
    dnac_site:
      host: "{{ inventory_hostname }}"
      port: '443'
      username: "{{ username }}"
      password: "{{ password }}"
      state: "{{ desired_state }}"
      name: Floor-1
      site_type: floor
      parent_name: Building-1
      rf_model: 'Cubes And Walled Offices'
      height: 10
      width: 100
      length: 200

Inputs

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

name:
    description:
    - Name of the site.
    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

width:
    description:
    - width of the floor
    required: false

height:
    description:
    - height of the ceiling for the floor
    required: false

length:
    description:
    - length of the floor
    required: false

address:
    description:
    - site address of the building
    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

latitude:
    description: latitude of the building
    required: false

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

rf_model:
    choices:
    - Cubes And Walled Offices
    - Drywall Office Only
    - Indoor High Ceiling
    - Outdoor Open Space]
    description:
    - rf model for the floor
    required: false

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

longitude:
    description:
    - longitude of the building
    required: false

site_type:
    choices:
    - area
    - building
    - floor
    default: area
    description:
    - type of site
    required: true

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

parent_name:
    default: Global
    description:
    - name of the containing site
    required: true

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