| # roles/dns-configure/tasks.yml |
| - name: Make sure resolvconf is doing DNS resolver mangling |
| - name: Create resolvconf configuration files |
| dest: "/etc/resolvconf/resolv.conf.d/{{ item }}" |
| register: resolvconf_configured |
| - name: Tell resolvconf to refresh /etc/resolv.conf file if changed |
| when: resolvconf_configured.changed |
| - skip_ansible_lint # needs to run before the DNS check which happens next, so can't be a handler |
| - name: Check that VM's can be found in DNS |
| shell: "dig +short {{ item.name }}.{{ site_suffix }} | grep {{ item.ipv4_last_octet }}" |
| with_items: "{{ head_lxd_list }}" |
| - skip_ansible_lint # purely a way to pass/fail config done so far. Ansible needs a "dns_query" module |