parent
24b82917d1
commit
c33e4d7bb7
|
@ -79,7 +79,7 @@
|
|||
|
||||
- name: Get currently configured nameservers
|
||||
set_fact:
|
||||
configured_nameservers: "{{ resolvconf_slurp.content | b64decode | regex_findall('^nameserver\\s*(.*)', multiline=True) | ipaddr }}"
|
||||
configured_nameservers: "{{ resolvconf_slurp.content | b64decode | regex_findall('^nameserver\\s*(\\S*)', multiline=True) | ipaddr }}"
|
||||
when: resolvconf_slurp.content is defined
|
||||
|
||||
- name: Stop if /etc/resolv.conf not configured nameservers
|
||||
|
|
Loading…
Reference in New Issue