cisco.meraki.meraki_network_settings module -- Manage the settings of networks 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_network_settings.

DEPRECATED

Removed in:

version 3.0.0

Why:

Updated modules released with increased functionality

Alternative:

cisco.meraki.networks_settings

Synopsis

  • Allows for management of settings of networks within Meraki.

Parameters

Parameter

Comments

auth_key

string / required

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

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`

local_status_page

dictionary

Configuration stanza of the local status page.

authentication

dictionary

Local status page authentication settings.

enabled

boolean

Set whether local status page authentication is enabled.

Choices:

password

string

Set password on local status page.

local_status_page_enabled

boolean

  • Enables the local device status pages (U[my.meraki.com](my.meraki.com), U[ap.meraki.com](ap.meraki.com), U[switch.meraki.com](switch.meraki.com), U[wired.meraki.com](wired.meraki.com)). - Only can be specified on its own or with remote_status_page_enabled.

Choices:

net_id

string

ID number of a network.

net_name

aliases: name, network

string

Name of a 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:

rate_limit_retry_time

integer

Number of seconds to retry if rate limiter is triggered.

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

remote_status_page_enabled

boolean

Enables access to the device status page (http://device%20LAN%20IP).

Can only be set if local_status_page_enabled: is set to yes.

Only can be specified on its own or with local_status_page_enabled.

Choices:

secure_port

dictionary

Configuration of SecureConnect options applied to the network.

enabled

boolean

Set whether SecureConnect is enabled on the network.

Choices:

state

string

Create or modify an organization.

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:

validate_certs

boolean

Whether to validate HTTP certificates.

Choices:

Notes

Note

  • 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: Get network settings
  cisco.meraki.meraki_network_settings:
    auth_key: '{{ auth_key }}'
    state: query
    org_name: '{{test_org_name}}'
    net_name: NetworkSettingsTestNet
  delegate_to: localhost

- name: Update network settings
  cisco.meraki.meraki_network_settings:
    auth_key: '{{ auth_key }}'
    state: present
    org_name: '{{test_org_name}}'
    net_name: NetworkSettingsTestNet
    local_status_page_enabled: false
  delegate_to: localhost

- name: Enable password on local page
  cisco.meraki.meraki_network_settings:
    auth_key: '{{ auth_key }}'
    state: present
    org_name: '{{test_org_name}}'
    net_name: NetworkSettingsTestNet
    local_status_page_enabled: true
    local_status_page:
      authentication:
        enabled: true
        password: abc123
  delegate_to: localhost

Return Values

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

Key

Description

data

complex

Information about the created or manipulated object.

Returned: info

expire_data_older_than

integer

The number of days, weeks, or months in Epoch time to expire the data before

Returned: success

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

fips

complex

A hash of FIPS options applied to the Network.

Returned: success

enabled

boolean

Enables/disables FIPS on the network.

Returned: success

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

local_status_page

complex

A hash of Local Status Page(s) authentication options applied to the Network.

Returned: success

authentication

complex

A hash of Local Status Pages' authentication options applied to the Network.

Returned: success

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

enabled

boolean

Enables/Disables the authenticaiton on Local Status Pages.

Returned: success

username

string

The username used for Local Status Pages.

Returned: success

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

local_status_page_enabled

boolean

States whether my.meraki.com and other device portals should be enabled.

Returned: success

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

named_vlans

complex

A hash of Named VLANs options applied to the Network.

Returned: success

enabled

boolean

Enables/disables Named VLANs on the network.

Returned: success

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

remote_status_page_enabled

boolean

Enables access to the device status page.

Returned: success

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

secure_port

complex

A hash of SecureConnect options applied to the Network.

Returned: success

enabled

boolean

Enables/disables SecureConnect on the network.

Returned: success

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

Status

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

  • For more information see DEPRECATED.

Authors

  • Kevin Breit (@kbreit)