--- # See https://learn.microsoft.com/en-us/windows-server/administration/openssh/openssh_install_firstuse?tabs=powershell - name: Install the OpenSSH Server ansible.windows.win_powershell: script: "Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0" - name: Set service startup mode to auto and ensure sshd is started ansible.windows.win_service: name: sshd start_mode: auto state: started