Initial ssh.yml file for windows ssh.

Change-Id: Ib7db96c0a24e26612844e32b73f73a8dba6b239d
Reviewed-on: https://skia-review.googlesource.com/c/buildbot/+/264685
Reviewed-by: Ben Wagner aka dogben <benjaminwagner@google.com>
Commit-Queue: Ben Wagner aka dogben <benjaminwagner@google.com>
Auto-Submit: Weston Tracey <westont@google.com>
diff --git a/skolo/win/ansible/setup-skolo-bot.yml b/skolo/win/ansible/setup-skolo-bot.yml
index 02c416f..3b4fcec 100644
--- a/skolo/win/ansible/setup-skolo-bot.yml
+++ b/skolo/win/ansible/setup-skolo-bot.yml
@@ -6,6 +6,8 @@
 - import_playbook: swarming-bot-settings.yml
 # Install the VNC server to make debugging later steps easier.
 - import_playbook: vnc-server.yml
+# Install the SSH server to make debugging even easier.
+- import playbook: ssh.yml
 # Install Python before drivers so we can detect hardware using PyWin32. (We don't do this now, but
 # hopefully we will in the future.)
 - import_playbook: python.yml
diff --git a/skolo/win/ansible/ssh.yml b/skolo/win/ansible/ssh.yml
new file mode 100644
index 0000000..a001911
--- /dev/null
+++ b/skolo/win/ansible/ssh.yml
@@ -0,0 +1,19 @@
+---
+# Ensure an SSH server is installed.
+- hosts: all
+  become: yes
+  become_method: runas
+  become_user: chrome-bot
+  tasks:
+  - name: Install the Win32-OpenSSH service
+    win_shell: Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0
+  - name: Start OpenSSH
+    win_shell: Start-Service sshd
+  - name: Configure OpenSSH
+    win_shell: Set-Service -Name sshd -StartupType 'Automatic'
+  - name: Set the default shell to PowerShell
+    win_shell: >
+      New-ItemProperty -Path "HKLM:\SOFTWARE\OpenSSH" -Name DefaultShell -Value
+      "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe"
+      -PropertyType String -Force
+