1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

get rid of the stall with 'dhcp'

This commit is contained in:
Jerry Vonau 2018-05-12 23:10:41 -05:00
parent aad974777a
commit ff7022b563
3 changed files with 8 additions and 2 deletions

View file

@ -31,7 +31,12 @@
- name: Static IP computing CIDR
shell: netmask {{ wan_ip }}/{{ wan_netmask }} | awk -F "/" '{print $2}'
register: CIDR
when: wan_ip != "dhcp" or gui_static_wan_ip == "undefined"
when: wan_ip != "dhcp"
- name: Static IP setting CIDR
set_fact:
wan_cidr: "{{ CIDR.stdout }}"
when: wan_ip != "dhcp"
# ICO will always set gui_static_wan_ip away from the default of 'unset' while
# gui_static_wan turns dhcp on/off through wan_ip in computed_network and