diff --git a/tasks/RedHat/network_manager.yaml b/tasks/RedHat/network_manager.yaml index ad09b3c..1f3d7db 100644 --- a/tasks/RedHat/network_manager.yaml +++ b/tasks/RedHat/network_manager.yaml @@ -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) }}" diff --git a/tasks/main.yml b/tasks/main.yml deleted file mode 100644 index 1d79d02..0000000 --- a/tasks/main.yml +++ /dev/null @@ -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"