--- - name: unbound checkconf become: true ansible.builtin.command: unbound-checkconf /etc/unbound/unbound.conf changed_when: true notify: systemctl restart unbound - name: systemctl restart unbound become: true ansible.builtin.service: name: unbound state: restarted