mirror of
https://github.com/iiab/iiab.git
synced 2025-02-12 19:22:24 +00:00
netplan - let backends handle static ip
This commit is contained in:
parent
4ab0e63214
commit
325db43473
1 changed files with 8 additions and 8 deletions
|
@ -32,15 +32,15 @@
|
|||
# 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: Static IP computing CIDR
|
||||
shell: netmask {{ wan_ip }}/{{ wan_netmask }} | awk -F "/" '{print $2}'
|
||||
register: CIDR
|
||||
when: wan_ip != "dhcp"
|
||||
#- name: Static IP computing CIDR
|
||||
# shell: netmask {{ wan_ip }}/{{ wan_netmask }} | awk -F "/" '{print $2}'
|
||||
# register: CIDR
|
||||
# when: wan_ip != "dhcp"
|
||||
|
||||
- name: Static IP setting CIDR
|
||||
set_fact:
|
||||
wan_cidr: "{{ CIDR.stdout }}"
|
||||
when: wan_ip != "dhcp"
|
||||
#- name: Static IP setting CIDR
|
||||
# set_fact:
|
||||
# wan_cidr: "{{ CIDR.stdout }}"
|
||||
# when: wan_ip != "dhcp"
|
||||
|
||||
- name: Remove stock netplan template
|
||||
file:
|
||||
|
|
Loading…
Reference in a new issue