--- - name: ensure /etc/unbound exists ansible.builtin.file: path: /etc/unbound state: directory mode: "0755" - name: deploy unbound config ansible.builtin.copy: src: "{{ item }}" dest: "/etc/unbound/{{ item }}" mode: "0744" loop: - unbound.conf notify: restart unbound