Skip to content
Snippets Groups Projects
Unverified Commit 4db5e663 authored by Kay Yan's avatar Kay Yan Committed by GitHub
Browse files

fix-mistake-regex-for-resolv-conf (#9523)

parent 529faeea
No related branches found
No related tags found
No related merge requests found
......@@ -70,7 +70,7 @@
- name: get currently configured nameservers
set_fact:
configured_nameservers: "{{ resolvconf_slurp.content | b64decode | regex_findall('\\s*nameserver\\s*(.*)') | ipaddr }}"
configured_nameservers: "{{ resolvconf_slurp.content | b64decode | regex_findall('^nameserver\\s*(.*)', multiline=True) | ipaddr }}"
when: resolvconf_slurp.content is defined
when: resolvconf_stat.stat.exists is defined and resolvconf_stat.stat.exists
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment