Deprecated

Removed in 3.0.0

i

Reason:Updated modules released with increased functionality | Alternative:cisco.meraki.networks

cisco.meraki.meraki_network (2.18.0) — module

Manage networks in the Meraki cloud

Authors: Kevin Breit (@kbreit)

deprecated | supported by community

Install collection

Install with ansible-galaxy collection install cisco.meraki:==2.18.0


Add to requirements.yml

  collections:
    - name: cisco.meraki
      version: 2.18.0

Description

Allows for creation, management, and visibility into networks within Meraki.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- delegate_to: localhost
  block:
    - name: List all networks associated to the YourOrg organization
      meraki_network:
        auth_key: abc12345
        state: query
        org_name: YourOrg
    - name: Query network named MyNet in the YourOrg organization
      meraki_network:
        auth_key: abc12345
        state: query
        org_name: YourOrg
        net_name: MyNet
    - name: Create network named MyNet in the YourOrg organization
      meraki_network:
        auth_key: abc12345
        state: present
        org_name: YourOrg
        net_name: MyNet
        type: switch
        timezone: America/Chicago
        tags: production, chicago
    - name: Create combined network named MyNet in the YourOrg organization
      meraki_network:
        auth_key: abc12345
        state: present
        org_name: YourOrg
        net_name: MyNet
        type:
          - switch
          - appliance
        timezone: America/Chicago
        tags: production, chicago
    - name: Create new network based on an existing network
      meraki_network:
        auth_key: abc12345
        state: present
        org_name: YourOrg
        net_name: MyNet
        type:
          - switch
          - appliance
        copy_from_network_id: N_1234
    - name: Enable VLANs on a network
      meraki_network:
        auth_key: abc12345
        state: query
        org_name: YourOrg
        net_name: MyNet
        enable_vlans: yes
    - name: Modify local status page enabled state
      meraki_network:
        auth_key: abc12345
        state: query
        org_name: YourOrg
        net_name: MyNet
        local_status_page_enabled: yes

Inputs

    
host:
    default: api.meraki.com
    description:
    - Hostname for Meraki dashboard.
    - Can be used to access regional Meraki environments, such as China.
    type: str

tags:
    description:
    - List of tags to assign to network.
    - C(tags) name conflicts with the tags parameter in Ansible. Indentation problems
      may cause unexpected behaviors.
    - Ansible 2.8 converts this to a list from a comma separated list.
    elements: str
    type: list

type:
    aliases:
    - net_type
    choices:
    - appliance
    - switch
    - wireless
    - sensor
    - systemsManager
    - camera
    - cellularGateway
    description:
    - Type of network device network manages.
    - Required when creating a network.
    - As of Ansible 2.8, C(combined) type is no longer accepted.
    - As of Ansible 2.8, changes to this parameter are no longer idempotent.
    elements: str
    type: list

state:
    choices:
    - absent
    - present
    - query
    default: present
    description:
    - Create or modify an organization.
    type: str

net_id:
    description:
    - ID number of a network.
    type: str

org_id:
    description:
    - ID of organization.
    type: str

timeout:
    default: 30
    description:
    - Time to timeout for HTTP requests.
    type: int

auth_key:
    description:
    - Authentication key provided by the dashboard. Required if environmental variable
      C(MERAKI_KEY) is not set.
    required: true
    type: str

net_name:
    aliases:
    - name
    - network
    description:
    - Name of a network.
    type: str

org_name:
    aliases:
    - organization
    description:
    - Name of organization.
    type: str

timezone:
    description:
    - Timezone associated to network.
    - See U(https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) for a list of
      valid timezones.
    type: str

use_https:
    default: true
    description:
    - If C(no), it will use HTTP. Otherwise it will use HTTPS.
    - Only useful for internal Meraki developers.
    type: bool

use_proxy:
    default: false
    description:
    - If C(no), it will not use a proxy, even if one is defined in an environment variable
      on the target hosts.
    type: bool

enable_vlans:
    description:
    - Boolean value specifying whether VLANs should be supported on a network.
    - Requires C(net_name) or C(net_id) to be specified.
    type: bool

output_level:
    choices:
    - debug
    - normal
    default: normal
    description:
    - Set amount of debug output during module execution.
    type: str

output_format:
    choices:
    - snakecase
    - camelcase
    default: snakecase
    description:
    - Instructs module whether response keys should be snake case (ex. C(net_id)) or camel
      case (ex. C(netId)).
    type: str

validate_certs:
    default: true
    description:
    - Whether to validate HTTP certificates.
    type: bool

copy_from_network_id:
    description:
    - New network inherits properties from this network ID.
    - Other provided parameters will override the copied configuration.
    - Type which must match this network's type exactly.
    type: str

rate_limit_retry_time:
    default: 165
    description:
    - Number of seconds to retry if rate limiter is triggered.
    type: int

internal_error_retry_time:
    default: 60
    description:
    - Number of seconds to retry if server returns an internal server error.
    type: int

local_status_page_enabled:
    description: '- This no longer works and will likely be moved to a separate module.
      - 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 C(remote_status_page_enabled).

      '
    type: bool

remote_status_page_enabled:
    description:
    - This no longer works and will likely be moved to a separate module.
    - Enables access to the device status page (U(http://device LAN IP)).
    - Can only be set if C(local_status_page_enabled:) is set to C(yes).
    - Only can be specified on its own or with C(local_status_page_enabled).
    type: bool

Outputs

data:
  contains:
    id:
      description: Identification string of network.
      returned: success
      sample: N_12345
      type: str
    local_status_page_enabled:
      description: States whether U(my.meraki.com) and other device portals should
        be enabled.
      returned: success
      sample: true
      type: bool
    name:
      description: Written name of network.
      returned: success
      sample: YourNet
      type: str
    organization_id:
      description: Organization ID which owns the network.
      returned: success
      sample: 0987654321
      type: str
    remote_status_page_enabled:
      description: Enables access to the device status page.
      returned: success
      sample: true
      type: bool
    tags:
      description: Space delimited tags assigned to network.
      returned: success
      sample:
      - production
      type: list
    time_zone:
      description: Timezone where network resides.
      returned: success
      sample: America/Chicago
      type: str
    type:
      description: Functional type of network.
      returned: success
      sample:
      - switch
      type: list
  description: Information about the created or manipulated object.
  returned: info
  type: complex