Zack Williams | 22e8993 | 2016-03-15 11:08:06 -0700 | [diff] [blame] | 1 | --- |
| 2 | # roles/dns-configure/tasks.yml |
| 3 | |
| 4 | - name: Configure resolv.conf to use nameservers |
Zack Williams | c56ac64 | 2016-03-15 11:08:47 -0700 | [diff] [blame] | 5 | template: |
Zack Williams | 22e8993 | 2016-03-15 11:08:06 -0700 | [diff] [blame] | 6 | src="resolv.conf.j2" |
| 7 | dest="/etc/resolv.conf" |
| 8 | mode=0644 owner=root group=root |
| 9 | |
Zack Williams | 82c88e9 | 2016-08-08 13:54:20 -0700 | [diff] [blame] | 10 | - name: Check that VM's can be found in DNS |
| 11 | shell: "dig +short {{ item.name }}.{{ site_suffix }} | grep {{ item.ipv4_last_octet }}" |
| 12 | with_items: "{{ head_vm_list }}" |
Zack Williams | 3562456 | 2016-08-28 17:12:26 -0700 | [diff] [blame] | 13 | tags: |
| 14 | - skip_ansible_lint # purely a way to pass/fail config done so far. Ansible needs a "dns_query" module |
Zack Williams | 82c88e9 | 2016-08-08 13:54:20 -0700 | [diff] [blame] | 15 | |