--- - name: restart openssh ansible.builtin.service: name: "{{ openssh_service }}" state: restarted when: - not ansible_check_mode - not openssh_restart_immediately