--- - name: "Fix DNS" hosts: rpis tasks: - name: "Copy working resolv.conf" ansible.builtin.copy: src: /srv/ansible/files/configs/rpis/resolve.conf dest: /etc/resolv.conf owner: root group: root mode: '0644' become: True ...