summaryrefslogtreecommitdiffstats
path: root/ansible_collections/cisco/meraki/playbooks/ms_playbook.yml
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-18 05:52:22 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-18 05:52:22 +0000
commit38b7c80217c4e72b1d8988eb1e60bb6e77334114 (patch)
tree356e9fd3762877d07cde52d21e77070aeff7e789 /ansible_collections/cisco/meraki/playbooks/ms_playbook.yml
parentAdding upstream version 7.7.0+dfsg. (diff)
downloadansible-38b7c80217c4e72b1d8988eb1e60bb6e77334114.tar.xz
ansible-38b7c80217c4e72b1d8988eb1e60bb6e77334114.zip
Adding upstream version 9.4.0+dfsg.upstream/9.4.0+dfsg
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ansible_collections/cisco/meraki/playbooks/ms_playbook.yml')
-rw-r--r--ansible_collections/cisco/meraki/playbooks/ms_playbook.yml66
1 files changed, 66 insertions, 0 deletions
diff --git a/ansible_collections/cisco/meraki/playbooks/ms_playbook.yml b/ansible_collections/cisco/meraki/playbooks/ms_playbook.yml
new file mode 100644
index 000000000..c9f2d333b
--- /dev/null
+++ b/ansible_collections/cisco/meraki/playbooks/ms_playbook.yml
@@ -0,0 +1,66 @@
+---
+
+- hosts: localhost
+ vars:
+ network_id: L_828099381482770866 # Site-2
+ serial_number: QBSB-D5ZD-9CXT
+ gather_facts: false
+ tasks:
+
+ - name: Update STP settings
+ cisco.meraki.networks_switch_stp:
+ networkId: "{{ network_id }}"
+ rstpEnabled: true
+ stpBridgePriority:
+ - stpPriority: 4096
+ switches:
+ - "{{ serial_number }}"
+
+ - name: Update switch settings
+ cisco.meraki.networks_switch_settings:
+ networkId: "{{ network_id }}"
+ useCombinedPower: true
+ vlan: 1
+
+ - name: Update storm-control settings
+ cisco.meraki.networks_switch_storm_control:
+ networkId: "{{ network_id }}"
+ broadcastThreshold: 30
+ multicastThreshold: 30
+ unknownUnicastThreshold: 30
+
+ - name: Update MTU settings
+ cisco.meraki.networks_switch_mtu:
+ networkId: "{{ network_id }}"
+ defaultMtuSize: 9578
+
+ - name: Createa a routing interface
+ cisco.meraki.devices_switch_routing_interfaces:
+ defaultGateway: 192.168.1.1
+ interfaceIp: 192.168.1.2
+ name: L3 interface
+ serial: "{{ serial_number }}"
+ subnet: 192.168.1.0/24
+ vlanId: 123
+
+ - name: Create a static route
+ cisco.meraki.devices_switch_routing_static_routes:
+ serial: "{{ serial_number }}"
+ name: My route
+ nextHopIp: 192.168.1.100
+ subnet: 1.2.3.0/24
+
+ - name: Create a static route
+ cisco.meraki.devices_switch_routing_static_routes:
+ serial: "{{ serial_number }}"
+ name: My route
+ nextHopIp: 192.168.1.100
+ subnet: 1.2.3.0/24
+
+ - name: Port cycle
+ cisco.meraki.devices_switch_ports_cycle:
+ serial: "{{ serial_number }}"
+ ports:
+ - 1
+ - "4-5"
+ - "25-48"