aboutsummaryrefslogtreecommitdiffstats
path: root/roles/httpd_site_healthcheck
diff options
context:
space:
mode:
Diffstat (limited to 'roles/httpd_site_healthcheck')
-rw-r--r--roles/httpd_site_healthcheck/defaults/main.yml8
-rw-r--r--roles/httpd_site_healthcheck/meta/main.yml5
-rw-r--r--roles/httpd_site_healthcheck/tasks/main.yml25
-rw-r--r--roles/httpd_site_healthcheck/templates/httpd.conf.j26
-rw-r--r--roles/httpd_site_healthcheck/templates/index.html.j234
5 files changed, 0 insertions, 78 deletions
diff --git a/roles/httpd_site_healthcheck/defaults/main.yml b/roles/httpd_site_healthcheck/defaults/main.yml
deleted file mode 100644
index 3b0acd0..0000000
--- a/roles/httpd_site_healthcheck/defaults/main.yml
+++ /dev/null
@@ -1,8 +0,0 @@
----
-
-httpd_configuration_file: /etc/httpd.conf
-httpd_configuration_dir: /etc/httpd.d
-httpd_chroot: /var/www
-
-httpd_user: www
-httpd_group: www
diff --git a/roles/httpd_site_healthcheck/meta/main.yml b/roles/httpd_site_healthcheck/meta/main.yml
deleted file mode 100644
index dd93239..0000000
--- a/roles/httpd_site_healthcheck/meta/main.yml
+++ /dev/null
@@ -1,5 +0,0 @@
----
-
-dependencies:
- - role: httpd_pre
- tags: dependency
diff --git a/roles/httpd_site_healthcheck/tasks/main.yml b/roles/httpd_site_healthcheck/tasks/main.yml
deleted file mode 100644
index 7cb2edb..0000000
--- a/roles/httpd_site_healthcheck/tasks/main.yml
+++ /dev/null
@@ -1,25 +0,0 @@
----
-
-- name: create httpd healthcheck directory
- ansible.builtin.file:
- path: "{{ httpd_chroot }}/htdocs/healthcheck"
- owner: "{{ httpd_user }}"
- group: "{{ httpd_group }}"
- mode: "0550"
- state: directory
-
-- name: generate generate httpd healthcheck html index
- ansible.builtin.template:
- src: index.html.j2
- dest: "{{ httpd_chroot }}/htdocs/healthcheck/index.html"
- owner: "{{ httpd_user }}"
- group: "{{ httpd_group }}"
- mode: "0440"
-
-- name: generate httpd healthcheck configuration
- ansible.builtin.template:
- src: httpd.conf.j2
- dest: "{{ httpd_configuration_dir }}/healthcheck.conf"
- owner: 0
- group: 0
- mode: "0644"
diff --git a/roles/httpd_site_healthcheck/templates/httpd.conf.j2 b/roles/httpd_site_healthcheck/templates/httpd.conf.j2
deleted file mode 100644
index 17ffd04..0000000
--- a/roles/httpd_site_healthcheck/templates/httpd.conf.j2
+++ /dev/null
@@ -1,6 +0,0 @@
-# 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
deleted file mode 100644
index c52ff41..0000000
--- a/roles/httpd_site_healthcheck/templates/index.html.j2
+++ /dev/null
@@ -1,34 +0,0 @@
-<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.