Skip to content

Commit

Permalink
fix-resolv.conf-nameserver-inline-comments (#10415)
Browse files Browse the repository at this point in the history
  • Loading branch information
yankay committed Sep 7, 2023
1 parent 24b8291 commit c33e4d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/kubernetes/preinstall/tasks/0020-set_facts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c33e4d7

Please sign in to comment.