Merge "DNS issue with install"
This commit is contained in:
commit
605943b362
@ -2,7 +2,12 @@
|
|||||||
#
|
#
|
||||||
# Browbeat Install Common
|
# Browbeat Install Common
|
||||||
#
|
#
|
||||||
|
- name: Check external connectivity
|
||||||
|
shell: ping google.com -c 1 -q
|
||||||
|
register: ping
|
||||||
|
ignore_errors: true
|
||||||
|
|
||||||
- name: Add DNS record
|
- name: Add DNS record
|
||||||
become: true
|
become: true
|
||||||
lineinfile: dest=/etc/resolv.conf state=present line="nameserver {{ dns_server }}" insertafter="^search"
|
lineinfile: dest=/etc/resolv.conf state=present line="nameserver {{ dns_server }}" insertafter="^search"
|
||||||
|
when: ping.rc != 0
|
||||||
|
Loading…
Reference in New Issue
Block a user