- name: Replace /etc/resolv.conf template: src: resolv.conf dest: /etc/ owner: root group: root mode: '0644' backup: true when: resolv_enabled