--- - name: Restart emptty service listen: Restart emptty ansible.builtin.command: sv restart emptty changed_when: true when: - not ansible_check_mode - "'void' in group_names" - desktop_restart_emptty_automatically | default(false) - name: Report manual emptty restart requirement listen: Restart emptty ansible.builtin.debug: msg: >- Emptty configuration changed but automatic restart is disabled. Restart it manually from SSH or another TTY with `sudo sv restart emptty` to avoid dropping the active graphical session. when: - not ansible_check_mode - "'void' in group_names" - not (desktop_restart_emptty_automatically | default(false)) - name: Reload SSH service with runit listen: Reload SSH service ansible.builtin.command: sv reload sshd changed_when: true when: - not ansible_check_mode - "'void' in group_names" - name: Reload SSH service with systemd listen: Reload SSH service ansible.builtin.systemd: name: "{{ desktop_ssh_service_name | default('sshd') }}" state: reloaded when: - not ansible_check_mode - "'arch' in group_names"