--- - name: Restart sshd ansible.builtin.service: name: sshd state: restarted # Handler names are play-global: if several roles define the same name, only the # last one defined runs, under *that* role's `when:`. A shared "Reboot" therefore # never fired while pi_disable_onboard_bluetooth (usually switched off) defined one # too. Keep this name unique to the role. - name: Reboot after standard setup ansible.builtin.reboot: - name: Restart raspi-leds-off ansible.builtin.service: name: raspi-leds-off state: restarted