Skip to content
Snippets Groups Projects
Commit 3ca8b584 authored by Adrian Rixon's avatar Adrian Rixon
Browse files

Add support for ignoring auto-configured IPv6 DNS resolvers

	modified:   README.md
	modified:   tasks/main.yml
parent ee878c7c
Branches
No related tags found
No related merge requests found
...@@ -23,6 +23,9 @@ Role Variables ...@@ -23,6 +23,9 @@ Role Variables
ipv6_nm_method: ipv6_nm_method:
Setting for NetworkManager primary connection method6 parameter Setting for NetworkManager primary connection method6 parameter
(optional, default: undefined) (optional, default: undefined)
ipv6_dns_ignore:
Whether to ignore the automatically-configured DNS resolvers for
IPv6 (optional, boolean, default: undefined)
Dependencies Dependencies
------------ ------------
......
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
when: ipv6_nm_method is defined when: ipv6_nm_method is defined
tags: tags:
- ipv6-config - ipv6-config
- ipv6-config-nm
- name: disable IPv6 method for NM connection - name: disable IPv6 method for NM connection
community.general.nmcli: community.general.nmcli:
...@@ -21,6 +22,19 @@ ...@@ -21,6 +22,19 @@
notify: restart NetworkManager notify: restart NetworkManager
tags: tags:
- ipv6-config - ipv6-config
- ipv6-config-nm
- name: disable IPv6 DNS for NM connection
community.general.nmcli:
type: ethernet
conn_name: "{{ conn_name.stdout }}"
dns6_ignore_auto: "{{ ipv6_dns_ignore | bool }}"
state: present
when: ipv6_dns_ignore is defined and conn_name.stdout is defined
notify: restart NetworkManager
tags:
- ipv6-config
- ipv6-config-nm
- name: remove sysctl entries if not set - name: remove sysctl entries if not set
sysctl: sysctl:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment