- name: Restart nut-driver-enumerator when: not nut_driver_enumerator_started.changed ansible.builtin.service: name: nut-driver-enumerator.service state: restarted - name: Restart nut-server when: not nut_server_started.changed ansible.builtin.service: name: nut-server.service state: restarted