browbeat/ansible/install/roles/common/tasks/main.yml
jkilpatr 2a581e28b4 Prep CI for Pike
So this detects if a deployment was containerized and then
stores that in the metadata. This also disables results in httpd
since that seems to cause problems for Pike deployments at the moment

The final change is some sort of permissions problem with running ping
during the browbeat install. I'd like to find a better solution than
just slapping sudo on the front though.

Change-Id: I57c0006bc9abe861782ebdfb918b4151bba67eae
2017-07-04 12:09:52 +00:00

19 lines
487 B
YAML

---
#
# Browbeat Install Common
#
- name: Check external connectivity
command: ping google.com -c 1 -q
register: ping
ignore_errors: true
become: true
tags:
# Skip ANSIBLE0012 Commands should not change things if nothing needs doing
# Need to check external activity every time
- skip_ansible_lint
- name: Add DNS record
become: true
lineinfile: dest=/etc/resolv.conf state=present line="nameserver {{ dns_server }}" insertafter="^search"
when: ping.rc != 0