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
|
useVlanTagging: true
|
||||||
|
|
||||||
- name: Configure Port Forwarding
|
- name: Configure Port Forwarding
|
||||||
cisco.meraki.networks_appliance_firewall_port_forwarding_rules:
|
ansible.builtin.uri:
|
||||||
state: present
|
url: "https://api.meraki.com/api/v1/networks/{{ nid }}/appliance/firewall/portForwardingRules"
|
||||||
networkId: "{{ nid }}"
|
method: PUT
|
||||||
purge: false
|
headers:
|
||||||
|
X-Cisco-Meraki-API-Key: "{{ lookup('ansible.builtin.env', 'MERAKI_DASHBOARD_API_KEY') }}"
|
||||||
|
Content-Type: application/json
|
||||||
|
body_format: json
|
||||||
|
body:
|
||||||
rules:
|
rules:
|
||||||
- name: NAS HTTP
|
- name: NAS HTTP
|
||||||
uplink: internet1
|
uplink: internet1
|
||||||
|
|||||||
Reference in New Issue
Block a user