mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
allow the console to back out of static
This commit is contained in:
parent
db2b3b7ee1
commit
1082dd2aa4
2 changed files with 16 additions and 2 deletions
|
|
@ -33,12 +33,16 @@
|
|||
when: wan_ip != "dhcp"
|
||||
register: CIDR
|
||||
|
||||
# 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
|
||||
# overrides gui_static_wan_ip that is present. Changing wan_ip in local_vars
|
||||
# is a oneway street to static.
|
||||
- name: Supply static template
|
||||
template:
|
||||
dest: /etc/netplan/50-cloud-init.yaml
|
||||
src: network/cloud-init.j2
|
||||
backup: yes
|
||||
when: wan_ip != "dhcp"
|
||||
backup: no
|
||||
when: wan_ip != "dhcp" or gui_static_wan_ip == "undefined"
|
||||
|
||||
- name: Reload systemd
|
||||
systemd:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue