Merge "DNS issue with install"

This commit is contained in:
Jenkins 2016-06-16 15:09:03 +00:00 committed by Gerrit Code Review
commit 605943b362

View File

@ -2,7 +2,12 @@
#
# Browbeat Install Common
#
- name: Check external connectivity
shell: ping google.com -c 1 -q
register: ping
ignore_errors: true
- name: Add DNS record
become: true
lineinfile: dest=/etc/resolv.conf state=present line="nameserver {{ dns_server }}" insertafter="^search"
when: ping.rc != 0