[switchbaord] Add set_root_password Ansible role.

Bug: skia:12063
Change-Id: Ic753af0fdf6eb6fde37510333337bfba324e5511
Reviewed-on: https://skia-review.googlesource.com/c/buildbot/+/434468
Reviewed-by: Kevin Lubick <kjlubick@google.com>
diff --git a/skolo/ansible/switchboard/roles/set_root_password/README.md b/skolo/ansible/switchboard/roles/set_root_password/README.md
new file mode 100644
index 0000000..e04a1cd
--- /dev/null
+++ b/skolo/ansible/switchboard/roles/set_root_password/README.md
@@ -0,0 +1,23 @@
+# Role Name
+
+`set_root_password`
+
+## Description
+
+Sets the root password.
+
+## Variables Required
+
+This role requires the `secrets.skolo_password`, which is loaded via the
+required role `load_secret_vars`.
+
+## Example Playbook
+
+```
+# Set root password on rpis,
+- hosts: "{{ variable_hosts | default('rpis') }}"
+  user: root
+
+  roles:
+    - set_root_password
+```
diff --git a/skolo/ansible/switchboard/roles/set_root_password/meta/main.yml b/skolo/ansible/switchboard/roles/set_root_password/meta/main.yml
new file mode 100644
index 0000000..5f524b9
--- /dev/null
+++ b/skolo/ansible/switchboard/roles/set_root_password/meta/main.yml
@@ -0,0 +1,2 @@
+dependencies:
+  - role: load_secret_vars
diff --git a/skolo/ansible/switchboard/roles/set_root_password/tasks/main.yml b/skolo/ansible/switchboard/roles/set_root_password/tasks/main.yml
new file mode 100644
index 0000000..9efc191
--- /dev/null
+++ b/skolo/ansible/switchboard/roles/set_root_password/tasks/main.yml
@@ -0,0 +1,7 @@
+---
+# tasks file for set_root_password
+- name: Root password
+  user:
+    name: root
+    shell: /bin/bash
+    password: "{{ secrets.skolo_password | password_hash('sha256') }}"