mirror of
https://gitea.0xace.cc/ansible-galaxy/network.git
synced 2024-11-24 22:36:38 +00:00
fix ansible facts using for os family and major dist version
This commit is contained in:
parent
c2a8942b8e
commit
24d2dfc522
@ -8,7 +8,9 @@
|
||||
ip6: "{{ omit if iface.ip6 is not defined else (iface.ip6|join(', ')) }}"
|
||||
gw4: "{{ iface.gw4 | default(omit) }}"
|
||||
gw6: "{{ iface.gw6 | default(omit) }}"
|
||||
never_default4: "{{ iface.never_default4 | default('yes') }}"
|
||||
dns4: "{{ iface.dns4 | default(omit) }}"
|
||||
dns6: "{{ iface.dns6 | default(omit) }}"
|
||||
never_default4: "{{ iface.never_default4 | default(omit) }}"
|
||||
vlanid: "{{ iface.vlanid | default(omit) }}"
|
||||
mtu: "{{ iface.mtu | default(0) }}"
|
||||
zone: "{{ iface.zone | default(omit) }}"
|
||||
@ -53,7 +55,9 @@
|
||||
ip6: "{{ omit if iface.ip6 is not defined else (iface.ip6|join(', ')) }}"
|
||||
gw4: "{{ iface.gw4 | default(omit) }}"
|
||||
gw6: "{{ iface.gw6 | default(omit) }}"
|
||||
never_default4: "{{ iface.never_default4 | default('yes') }}"
|
||||
dns4: "{{ iface.dns4 | default(omit) }}"
|
||||
dns6: "{{ iface.dns6 | default(omit) }}"
|
||||
never_default4: "{{ iface.never_default4 | default(omit) }}"
|
||||
vlanid: "{{ iface.vlanid | default(omit) }}"
|
||||
routes4: "{{ iface.routes4 if (existing_routes4 != new_routes4) else omit }}"
|
||||
routing_rules4: "{{ iface.routing_rules4 | default(omit) }}"
|
||||
|
@ -1,13 +0,0 @@
|
||||
---
|
||||
- name: Set blank routes symbol
|
||||
command: echo -n
|
||||
register: echo
|
||||
changed_when: false
|
||||
|
||||
- name: Create array for interfaces to reload
|
||||
set_fact:
|
||||
reload_interfaces: []
|
||||
changed_when: false
|
||||
|
||||
- name: Include interfaces configuration tasks
|
||||
include: "{{ ansible_os_family }}/{{ ansible_distribution_major_version }}.yaml"
|
Loading…
Reference in New Issue
Block a user