Hi all
I am currently trying to edit the existing VLAN Profiles of our Cisco Meraki Network.
Therefore I am trying to use the module “cisco.meraki.networks_vlan_profile” as documented in cisco.meraki.networks_vlan_profiles module – Resource module for networks _vlanprofiles — Ansible Community Documentation.
This is the task I am using to edit the VLAN:
- name: Edit VLAN Profile
cisco.meraki.networks_vlan_profiles:
meraki_suppress_logging: true
meraki_api_key: “{{ meraki_dashboard_api_key }}”
state: present
iname: “Ansible”
name: “Ansible Test VLAN Profile”
networkId: “{{ meraki_network_ids[‘my-network-id’] }}”
vlanGroups:
vlanNames:
- name: “Ansible-Test-VLAN-10”
vlanId: ‘10’
The output error is the following:
“The error was: meraki.exceptions.APIError: networks, createNetworkVlanProfile - 400 Bad Request, {‘errors’: [‘Name has already been taken and Iname has already been taken’]}”
I can confirm that this code is working perfectly fine to create a new VLAN Profile but as soon as I want to change e.g. the VLAN ID or name I am running into this error.
I assume that this should be possible because part of the Synopsis of the module is " * Update an existing VLAN profile of a network."
Can someone give advice to me what I am supposed to do in order to get this running?
Thank you!