Skip to content

Commit

Permalink
Add uci set
Browse files Browse the repository at this point in the history
  • Loading branch information
Honigeintopf committed Oct 21, 2024
1 parent fa77cc7 commit 6beb2a0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions partition/roles/mgmt-firewall/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -243,12 +243,12 @@

- name: Setup Static Routes
ansible.builtin.raw: |
network.1=route
network.1.table='254'
network.1.netmask='0.0.0.0'
network.1.target='0.0.0.0'
network.1.gateway='{{ item.gateway }}'
network.1.interface='wan'
uci set network.{{ item.network }}=route
uci set network.{{ item.network }}.table='254'
uci set network.{{ item.network }}.netmask='0.0.0.0'
uci set network.{{ item.network }}.target='0.0.0.0'
uci set network.{{ item.network }}.gateway='{{ item.gateway }}'
uci set network.{{ item.network }}.interface='wan'
loop: '{{ mgmt_firewall_static_routes }}'
when: mgmt_firewall_static_routes_enabled | default(false)

Expand Down

0 comments on commit 6beb2a0

Please sign in to comment.