diff options
author | Romain Gonçalves <me@rgoncalves.se> | 2021-12-21 17:14:36 +0000 |
---|---|---|
committer | Romain Gonçalves <me@rgoncalves.se> | 2021-12-21 17:14:36 +0000 |
commit | 1db6aa5d8167b997924e4b78fdf1c6b8640db8fd (patch) | |
tree | d735e40462af7b585d0aef858b59018fe5addde3 /roles/httpd_site_healthcheck/tasks/main.yml | |
parent | 3b046f2a5fdd2a0f02c171fb63d8328159d671ae (diff) | |
download | rules-1db6aa5d8167b997924e4b78fdf1c6b8640db8fd.tar.gz |
roles/httpd: Add healthcheck subrole
Diffstat (limited to 'roles/httpd_site_healthcheck/tasks/main.yml')
-rw-r--r-- | roles/httpd_site_healthcheck/tasks/main.yml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/roles/httpd_site_healthcheck/tasks/main.yml b/roles/httpd_site_healthcheck/tasks/main.yml new file mode 100644 index 0000000..10cd3c8 --- /dev/null +++ b/roles/httpd_site_healthcheck/tasks/main.yml @@ -0,0 +1,23 @@ +- name: create httpd healthcheck directory + file: + path: "{{ httpd_chroot }}/htdocs/healthcheck" + owner: "{{ httpd_user }}" + group: "{{ httpd_group }}" + mode: 0550 + state: directory + +- name: generate generate httpd healthcheck html index + 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 + template: + src: httpd.conf.j2 + dest: "{{ httpd_configuration_dir }}/healthcheck.conf" + owner: 0 + group: 0 + mode: 0644 |