--- - name: install unbound ansible.builtin.apt: name: unbound state: latest update_cache: true notify: restart unbound - name: deploy unbound config ansible.builtin.copy: src: "{{ inventory_hostname }}/unbound.conf" dest: /etc/unbound/unbound.conf mode: "0744" notify: restart unbound