fix-mistake-regex-for-resolv-conf (#9523)
This commit is contained in:
parent
529faeea9e
commit
4db5e663c3
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue