@@ -0,0 +1,9 @@
+[defaults]
+inventory = ./inventory
+remote_user = student
+ask_pass = no
+
+[privilege_escalation]
+become = no
+become_method = sudo
+become_askpass = no
@@ -0,0 +1,12 @@
+workstation.lab.example.com
+utility.lab.example.com ansible_user=lab
+bastion.lab.example.com ansible_user=root
+# Example: override variables here.
+[all:vars]
+ocp_maj = 4.9
+ocp_z = 4.9.11
+rhcos_ver = 4.9.0
+cinst_ver = latest
+butane_ver = latest
@@ -0,0 +1,8 @@
+---
+- name: Prepare the utility VM for deployment of SNO1 cluster
+ hosts: utility.lab.example.com
+ become: true
+ gather_facts: false
+ roles:
+ - role: check-env
+...
@@ -0,0 +1,39 @@
+# Checks that every prereq is in place:
+#
+# Services:
+# - DHCP
+# - TFTP
+# - DNS
+# - chronyd
+# - haproxy
+# - httpd
+# Tools:
+# - openshift-install
+# - butane
+# - oc
+# Files:
+# - ???
+- name: Check services are running
+ service:
+ name: "{{ item }}"
+ state: running
+ loop:
+ - dhcpd
+ - tftp.socket
+ - named
+ - chronyd
+ - haproxy
+ - httpd
+- name: Make sure all the tools are there
+ file:
+ path: /usr/local/bin/{{ item }}
+ state: file
+ - openshift-install
+ - butane
+ - oc