aboutsummaryrefslogtreecommitdiffstats
path: root/roles/httpd_site_healthcheck/templates
diff options
context:
space:
mode:
Diffstat (limited to 'roles/httpd_site_healthcheck/templates')
-rw-r--r--roles/httpd_site_healthcheck/templates/httpd.conf.j26
-rw-r--r--roles/httpd_site_healthcheck/templates/index.html.j234
2 files changed, 40 insertions, 0 deletions
diff --git a/roles/httpd_site_healthcheck/templates/httpd.conf.j2 b/roles/httpd_site_healthcheck/templates/httpd.conf.j2
new file mode 100644
index 0000000..17ffd04
--- /dev/null
+++ b/roles/httpd_site_healthcheck/templates/httpd.conf.j2
@@ -0,0 +1,6 @@
+# managed by Ansible
+
+server "healthcheck" {
+ listen on * port 8000
+ root "/htdocs/healthcheck"
+}
diff --git a/roles/httpd_site_healthcheck/templates/index.html.j2 b/roles/httpd_site_healthcheck/templates/index.html.j2
new file mode 100644
index 0000000..c52ff41
--- /dev/null
+++ b/roles/httpd_site_healthcheck/templates/index.html.j2
@@ -0,0 +1,34 @@
+<html>
+<head>
+<meta charset="utf-8">
+<title>{{ inventory_hostname }} - healtcheck</title>
+<style>
+body {
+ background-color: white;
+ color: black;
+ font-family: 'Comic Sans MS', 'Chalkboard SE', 'Comic Neue', sans-serif;
+}
+
+hr {
+ border: 0;
+ border-bottom: 1px dashed;
+}
+
+@media (prefers-color-scheme: dark) {
+ body {
+ background-color: #1E1F21;
+ color: #EEEFF1;
+ }
+
+ a {
+ color: #BAD7FF;
+ }
+}
+</style>
+</head>
+<body>
+<h1>{{ inventory_hostname }} - healtcheck</h1>
+<hr>
+<blockquote>Thank you for using {{ inventory_hostname }}.</blockquote>
+</body>
+</html>
remember that computers suck.