--- - name: Reload the SSH service service: name: "{{ sshd_service }}" state: reloaded when: - sshd_allow_reload - ansible_virtualization_type|default(None) != 'docker' - ansible_connection != 'chroot' listen: reload_sshd