cisco.meraki.meraki_mr_ssid module -- Manage wireless SSIDs in the Meraki cloud

Note

This module is part of the cisco.meraki collection (version 2.18.2).

To install it, use: ansible-galaxy collection install cisco.meraki.

To use it in a playbook, specify: cisco.meraki.meraki_mr_ssid.

DEPRECATED

Removed in:

version 3.0.0

Why:

Updated modules released with increased functionality

Alternative:

cisco.meraki.networks_wireless_ssids

Synopsis

  • Allows for management of SSIDs in a Meraki wireless environment.

Parameters

Parameter

Comments

ap_availability_tags

list / elements=string

Set whether SSID will be broadcast by APs with tags matching any of the tags in this list.

Requires available_on_all_aps to be false.

ap_tags_vlan_ids

list / elements=dictionary

List of VLAN tags.

Requires ip_assignment_mode to be Bridge mode or Layer 3 roaming.

Requires use_vlan_tagging to be True.

tags

list / elements=string

List of AP tags.

vlan_id

integer

Numerical identifier that is assigned to the VLAN.

auth_key

string / required

Authentication key provided by the dashboard. Required if environmental variable MERAKI_KEY is not set.

auth_mode

string

available_on_all_aps

boolean

Set whether all APs should broadcast the SSID or if it should be restricted to APs matching any availability tags.

Requires ap_availability_tags to be defined when set to False.

Choices:

band_selection

string

concentrator_network_id

string

The concentrator to use for 'Layer 3 roaming with a concentrator' or 'VPN'.

default_vlan_id

integer

Default VLAN ID.

Requires ip_assignment_mode to be Bridge mode or Layer 3 roaming.

enabled

boolean

encryption_mode

string

enterprise_admin_access

string

Whether SSID is accessible by enterprise administrators.

Choices:

host

string

Hostname for Meraki dashboard.

Can be used to access regional Meraki environments, such as China.

Default: :ansible-option-default:`"api.meraki.com"`

internal_error_retry_time

integer

Number of seconds to retry if server returns an internal server error.

Default: :ansible-option-default:`60`

ip_assignment_mode

string

lan_isolation_enabled

boolean

Enable or disable Layer 2 Lan isolation.

Requires ip_assignment_mode to be Bridge mode.

Choices:

min_bitrate

float

name

string

Name of SSID.

net_id

string

ID of network.

net_name

string

Name of network.

number

aliases: ssid_number

integer

SSID number within network.

org_id

string

ID of organization.

org_name

aliases: organization

string

Name of organization.

output_format

string

Instructs module whether response keys should be snake case (ex. net_id) or camel case (ex. netId).

Choices:

output_level

string

Set amount of debug output during module execution.

Choices:

per_client_bandwidth_limit_down

integer

Maximum bandwidth in Mbps devices on SSID can download.

per_client_bandwidth_limit_up

integer

Maximum bandwidth in Mbps devices on SSID can upload.

psk

string

Password for wireless network.

Requires auth_mode to be set to psk.

radius_accounting_enabled

boolean

radius_accounting_servers

list / elements=dictionary

List of RADIUS servers for RADIUS accounting.

host

string / required

IP address or hostname of RADIUS server.

port

integer

Port number RADIUS server is listening to.

secret

string

RADIUS password.

Setting password is not idempotent.

radius_coa_enabled

boolean

Enable or disable RADIUS CoA (Change of Authorization) on SSID.

Choices:

radius_failover_policy

string

Set client access policy in case RADIUS servers aren't available.

Choices:

radius_load_balancing_policy

string

Set load balancing policy when multiple RADIUS servers are specified.

Choices:

radius_proxy_enabled

boolean

Enable or disable RADIUS Proxy on SSID.

Choices:

radius_servers

list / elements=dictionary

List of RADIUS servers.

host

string / required

IP address or hostname of RADIUS server.

port

integer

Port number RADIUS server is listening to.

secret

string

RADIUS password.

Setting password is not idempotent.

rate_limit_retry_time

integer

Number of seconds to retry if rate limiter is triggered.

Default: :ansible-option-default:`165`

splash_guest_sponsor_domains

list / elements=string

List of valid sponsor email domains for sponsored guest portal.

splash_page

string

state

string

Specifies whether SNMP information should be queried or modified.

Choices:

timeout

integer

Time to timeout for HTTP requests.

Default: :ansible-option-default:`30`

use_https

boolean

If no, it will use HTTP. Otherwise it will use HTTPS.

Only useful for internal Meraki developers.

Choices:

use_proxy

boolean

If no, it will not use a proxy, even if one is defined in an environment variable on the target hosts.

Choices:

use_vlan_tagging

boolean

Set whether to use VLAN tagging.

Requires default_vlan_id to be set.

Choices:

validate_certs

boolean

Whether to validate HTTP certificates.

Choices:

visible

boolean

Enable or disable whether APs should broadcast this SSID.

Choices:

vlan_id

integer

ID number of VLAN on SSID.

Requires ip_assignment_mode to be ayer 3 roaming with a concentrator or VPN.

walled_garden_enabled

boolean

Enable or disable walled garden functionality.

Choices:

walled_garden_ranges

list / elements=string

List of walled garden ranges.

wpa_encryption_mode

string

Notes

Note

  • Deleting an SSID does not delete RADIUS servers.

  • More information about the Meraki API can be found at https://dashboard.meraki.com/api_docs.

  • Some of the options are likely only used for developers within Meraki.

  • As of Ansible 2.9, Meraki modules output keys as snake case. To use camel case, set the ANSIBLE_MERAKI_FORMAT environment variable to camelcase.

  • Ansible's Meraki modules will stop supporting camel case output in Ansible 2.13. Please update your playbooks.

  • Check Mode downloads the current configuration from the dashboard, then compares changes against this download. Check Mode will report changed if there are differences in the configurations, but does not submit changes to the API for validation of change.

Examples

- name: Enable and name SSID
  meraki_ssid:
    auth_key: abc123
    state: present
    org_name: YourOrg
    net_name: WiFi
    name: GuestSSID
    enabled: true
    visible: true
  delegate_to: localhost

- name: Set PSK with invalid encryption mode
  meraki_ssid:
    auth_key: abc123
    state: present
    org_name: YourOrg
    net_name: WiFi
    name: GuestSSID
    auth_mode: psk
    psk: abc1234
    encryption_mode: eap
  ignore_errors: yes
  delegate_to: localhost

- name: Configure RADIUS servers
  meraki_ssid:
    auth_key: abc123
    state: present
    org_name: YourOrg
    net_name: WiFi
    name: GuestSSID
    auth_mode: open-with-radius
    radius_servers:
      - host: 192.0.1.200
        port: 1234
        secret: abc98765
  delegate_to: localhost

- name: Enable click-through splash page
  meraki_ssid:
    auth_key: abc123
    state: present
    org_name: YourOrg
    net_name: WiFi
    name: GuestSSID
    splash_page: Click-through splash page
  delegate_to: localhost

Return Values

Common return values are documented here, the following are the fields unique to this module:

Key

Description

data

complex

List of wireless SSIDs.

Returned: success

auth_mode

string

Authentication method.

Returned: success

Sample: :ansible-rv-sample-value:`"psk"`

band_selection

string

Wireless RF frequency wireless network will be broadcast on.

Returned: success

Sample: :ansible-rv-sample-value:`"5 GHz band only"`

enabled

boolean

Enabled state of wireless network.

Returned: success

Sample: :ansible-rv-sample-value:`true`

encryption_mode

string

Wireless traffic encryption method.

Returned: success

Sample: :ansible-rv-sample-value:`"wpa"`

ip_assignment_mode

string

Wireless client IP assignment method.

Returned: success

Sample: :ansible-rv-sample-value:`"NAT mode"`

min_bitrate

integer

Minimum bitrate a wireless client can connect at.

Returned: success

Sample: :ansible-rv-sample-value:`11`

name

string

Name of wireless SSID.

This value is what is broadcasted.

Returned: success

Sample: :ansible-rv-sample-value:`"CorpWireless"`

number

integer

Zero-based index number for SSIDs.

Returned: success

Sample: :ansible-rv-sample-value:`0`

per_client_bandwidth_limit_down

integer

Maximum download bandwidth a client can use.

Returned: success

Sample: :ansible-rv-sample-value:`0`

per_client_bandwidth_limit_up

integer

Maximum upload bandwidth a client can use.

Returned: success

Sample: :ansible-rv-sample-value:`1000`

psk

string

Secret wireless password.

Returned: success

Sample: :ansible-rv-sample-value:`"SecretWiFiPass"`

splash_page

string

Splash page to show when user authenticates.

Returned: success

Sample: :ansible-rv-sample-value:`"Click-through splash page"`

ssid_admin_accessible

boolean

Whether SSID is administratively accessible.

Returned: success

Sample: :ansible-rv-sample-value:`true`

wpa_encryption_mode

string

Enabled WPA versions.

Returned: success

Sample: :ansible-rv-sample-value:`"WPA2 only"`

Status

  • This module will be removed in version 3.0.0. [deprecated]

  • For more information see DEPRECATED.

Authors

  • Kevin Breit (@kbreit)