--- - name: install unbound DNS server apt: name: unbound state: present - name: Copy Configuration file for unbound ansible.builtin.copy: src: resolver.conf dest: /etc/unbound/unbound.conf owner: root group: root mode: '0644' - name: Enable and start unbound service shell: | systemctl enable unbound systemctl restart unbound