New in version 2.7.
| Parameter | Choices/Defaults | Comments |
|---|---|---|
| appliance_ip |
IP address of appliance.
Address must be within subnet specified in
subnet parameter. |
|
| auth_key |
Authentication key provided by the dashboard. Required if environmental variable MERAKI_KEY is not set.
|
|
| dns_nameservers |
Semi-colon delimited list of DNS IP addresses.
Specify one of the following options for preprogrammed DNS entries opendns, google_dns, upstream_dns
|
|
| fixed_ip_assignments |
Static IP address assignements to be distributed via DHCP by MAC address.
|
|
|
host
string |
Default: api.meraki.com
|
Hostname for Meraki dashboard
Only useful for internal Meraki developers
|
| name |
Name of VLAN.
aliases: vlan_name |
|
| net_name |
Name of network which VLAN is or should be in.
aliases: network |
|
| org_id |
ID of organization.
|
|
| org_name |
Name of organization.
aliases: organization |
|
| output_level |
|
Set amount of debug output during module execution
|
| reserved_ip_range |
IP address ranges which should be reserve and not distributed via DHCP.
|
|
| state |
|
Specifies whether object should be queried, created/modified, or removed.
|
| subnet |
CIDR notation of network subnet.
|
|
|
timeout
int |
Default: 30
|
Time to timeout for HTTP requests.
|
|
use_https
bool |
|
If
no, it will use HTTP. Otherwise it will use HTTPS.Only useful for internal Meraki developers
|
|
use_proxy
bool |
|
If
no, it will not use a proxy, even if one is defined in an environment variable on the target hosts. |
|
validate_certs
bool |
|
Whether to validate HTTP certificates.
|
| vlan_id |
ID number of VLAN.
ID should be between 1-4096.
|
|
| vpn_nat_subnet |
The translated VPN subnet if VPN and VPN subnet translation are enabled on the VLAN.
|
Note
- name: Query all VLANs in a network.
meraki_vlan:
auth_key: abc12345
org_name: YourOrg
net_name: YourNet
state: query
delegate_to: localhost
- name: Query information about a single VLAN by ID.
meraki_vlan:
auth_key: abc12345
org_name: YourOrg
net_name: YourNet
vlan_id: 2
state: query
delegate_to: localhost
- name: Create a VLAN.
meraki_vlan:
auth_key: abc12345
org_name: YourOrg
net_name: YourNet
state: present
vlan_id: 2
name: TestVLAN
subnet: 192.0.1.0/24
appliance_ip: 192.0.1.1
delegate_to: localhost
- name: Update a VLAN.
meraki_vlan:
auth_key: abc12345
org_name: YourOrg
net_name: YourNet
state: present
vlan_id: 2
name: TestVLAN
subnet: 192.0.1.0/24
appliance_ip: 192.168.250.2
fixed_ip_assignments:
- mac: "13:37:de:ad:be:ef"
ip: 192.168.250.10
name: fixed_ip
reserved_ip_range:
- start: 192.168.250.10
end: 192.168.250.20
comment: reserved_range
dns_nameservers: opendns
delegate_to: localhost
- name: Delete a VLAN.
meraki_vlan:
auth_key: abc12345
org_name: YourOrg
net_name: YourNet
state: absent
vlan_id: 2
delegate_to: localhost
Common return values are documented here, the following are the fields unique to this module:
| Key | Returned | Description |
|---|---|---|
|
response
dict
|
success |
Data returned from Meraki dashboard about VLAN.
|
This module is flagged as preview which means that it is not guaranteed to have a backwards compatible interface.
Hint
If you notice any issues in this documentation you can edit this document to improve it.