aboutsummaryrefslogtreecommitdiffstats
path: root/roles/httpd_site_healthcheck/templates
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2021-12-21 17:14:36 +0000
committerRomain Gonçalves <me@rgoncalves.se>2021-12-21 17:14:36 +0000
commit1db6aa5d8167b997924e4b78fdf1c6b8640db8fd (patch)
treed735e40462af7b585d0aef858b59018fe5addde3 /roles/httpd_site_healthcheck/templates
parent3b046f2a5fdd2a0f02c171fb63d8328159d671ae (diff)
downloadrules-1db6aa5d8167b997924e4b78fdf1c6b8640db8fd.tar.gz
roles/httpd: Add healthcheck subrole
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.