Dear Community, I am configuring an Ansible playbook that does the following: 1) Takes user prompts for network name and device serial numbers 2) Turns those prompts into variables 3) Creates a combined Network based on the inputs 4) Adds the device to the network, in this case an MX appliance. I have everything working but am running into a couple of issues: 1) When I use the "hostname:" parameter in the YAML, the MX device never gets added. I have to comment it out or remove the line completely. The network gets created no problem 2) When I am able to create the network and the device is successfully added (by commenting out the hostname param), how do I update the MX device name? Its the MAC address by default. Is this the same as the hostname? I am using Ansible 2.9. Thanks for any help you can provide. --- - hosts: localhost gather_facts: no connection: local # collections: # - cisco.meraki.meraki_site_to_site_vpn # - cisco.meraki.meraki_device # - cisco.meraki.meraki_network # - cisco.meraki.meraki_vlan vars_prompt: - name: "store_num" prompt: "Store Number" private: no - name: "mx_serial" prompt: "MX Serial Number" private: no - name: Create network in the ACME Organization meraki_network: auth_key: ***************************************** state: present org_name: ACME Sandbox net_name: "{{store_num}}-STORE" type: appliance,switch,wireless timezone: America/New_York tags: delegate_to: localhost - name: Add MX to the Network meraki_device: auth_key: *************************************** org_name: ACME Sandbox net_name: "{{store_num}}-STORE" serial: "{{mx_serial}}" hostname: 0000-GW-01 state: present delegate_to: localhost
... View more