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 | 172d92b | 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 }}" |
| 13 | |