- name: Wait for cloud-init to finish hosts: all gather_facts: no roles: - cloudinit-wait - name: Install services hosts: all pre_tasks: - name: Copy resolv.conf copy: src: resolv.conf dest: /etc/resolv.conf roles: - {role: apt, tags: apt} - {role: dnsmasq, tags: dnsmasq} - {role: nsd, tags: nsd}