feat: update port forwarding configuration to use API call
All checks were successful
Deploy / deploy (push) Successful in 34s
All checks were successful
Deploy / deploy (push) Successful in 34s
This commit is contained in:
12
config.yaml
12
config.yaml
@@ -219,10 +219,14 @@
|
||||
useVlanTagging: true
|
||||
|
||||
- name: Configure Port Forwarding
|
||||
cisco.meraki.networks_appliance_firewall_port_forwarding_rules:
|
||||
state: present
|
||||
networkId: "{{ nid }}"
|
||||
purge: false
|
||||
ansible.builtin.uri:
|
||||
url: "https://api.meraki.com/api/v1/networks/{{ nid }}/appliance/firewall/portForwardingRules"
|
||||
method: PUT
|
||||
headers:
|
||||
X-Cisco-Meraki-API-Key: "{{ lookup('ansible.builtin.env', 'MERAKI_DASHBOARD_API_KEY') }}"
|
||||
Content-Type: application/json
|
||||
body_format: json
|
||||
body:
|
||||
rules:
|
||||
- name: NAS HTTP
|
||||
uplink: internet1
|
||||
|
||||
Reference in New Issue
Block a user