Debian Codegraph @

ansible_collections/cisco/meraki/playbooks/mx_deployment.yml

raw symbols SCIP
1 - name: Play Name
2 hosts: localhost
3 vars:
4 network_id: L_828099381482771185
5 gather_facts: false
6 tasks:
7 - name: Get all networks _appliance _vlans
8 cisco.meraki.networks_appliance_vlans_info:
9 networkId: "{{ network_id }}"
10 register: result
11 - name: Update appliance Vlans
12 cisco.meraki.networks_appliance_vlans:
13 state: present
14 applianceIp: 192.168.1.2
15 cidr: 192.168.1.0/24
16 id: "1234"
17 name: My VLAN
18 networkId: "{{ network_id }}"
19 subnet: 192.168.1.0/24
20 - name: Update appliance SSID
21 cisco.meraki.networks_appliance_ssids:
22 meraki_suppress_logging: false
23 state: present
24 authMode: 8021x-radius
25 defaultVlanId: 10
26 enabled: true
27 name: My SSID
28 networkId: "{{ network_id }}"
29 number: 1234
30 radiusServers:
31 - host: 1.2.3.4
32 port: 1000
33 secret: secret
34 visible: true
35 wpaEncryptionMode: WPA2 only
36 - name: Update appliance traffic shaping
37 cisco.meraki.networks_appliance_traffic_shaping:
38 state: present
39 globalBandwidthLimits:
40 limitDown: 5120
41 limitUp: 2048
42 networkId: "{{ network_id }}"
43 - name: Update appliance ports
44 cisco.meraki.networks_appliance_ports:
45 allowedVlans: all
46 enabled: true
47 networkId: "{{ network_id }}"
48 portId: "4"
49 type: trunk
50 vlan: 10
51 state: present
52 - name: Create FW outbound L3 rules
53 cisco.meraki.networks_appliance_firewall_l3_firewall_rules:
54 networkId: "{{ network_id }}"
55 state: present
56 rules:
57 - comment: Block internetbadguys.com
58 destCidr: internetbadguys.com
59 destPort: any
60 policy: deny
61 protocol: any
62 srcCidr: any
63 syslogEnabled: false
64 - name: Create FW inbound L3 rules
65 cisco.meraki.networks_appliance_firewall_inbound_firewall_rules:
66 networkId: "{{ network_id }}"
67 rules:
68 - comment: Allow HTTP traffic to VLAN 1234 with HTTP servers.
69 destCidr: VLAN(1234).*
70 destPort: "80"
71 policy: allow
72 protocol: tcp
73 srcCidr: Any
74 srcPort: Any
75 syslogEnabled: false
76 - name: Create FW L7 rules
77 cisco.meraki.networks_appliance_firewall_l7_firewall_rules:
78 networkId: "{{ network_id }}"
79 rules:
80 - policy: deny
81 type: applicationCategory
82 value:
83 name: Sports
84 id: meraki:layer7/category/5
85 - name: Get all networks _appliance _firewall l3firewallrules
86 cisco.meraki.networks_appliance_firewall_l3_firewall_rules_info:
87 networkId: "{{ network_id }}"
88 register: result
89 - name: Show result
90 ansible.builtin.debug:
91 msg: "{{ result }}"