aboutsummaryrefslogtreecommitdiffstats
path: root/roles/httpd_site_healthcheck/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/httpd_site_healthcheck/tasks/main.yml')
-rw-r--r--roles/httpd_site_healthcheck/tasks/main.yml14
1 files changed, 8 insertions, 6 deletions
diff --git a/roles/httpd_site_healthcheck/tasks/main.yml b/roles/httpd_site_healthcheck/tasks/main.yml
index 10cd3c8..7cb2edb 100644
--- a/roles/httpd_site_healthcheck/tasks/main.yml
+++ b/roles/httpd_site_healthcheck/tasks/main.yml
@@ -1,23 +1,25 @@
+---
+
- name: create httpd healthcheck directory
- file:
+ ansible.builtin.file:
path: "{{ httpd_chroot }}/htdocs/healthcheck"
owner: "{{ httpd_user }}"
group: "{{ httpd_group }}"
- mode: 0550
+ mode: "0550"
state: directory
- name: generate generate httpd healthcheck html index
- template:
+ ansible.builtin.template:
src: index.html.j2
dest: "{{ httpd_chroot }}/htdocs/healthcheck/index.html"
owner: "{{ httpd_user }}"
group: "{{ httpd_group }}"
- mode: 0440
+ mode: "0440"
- name: generate httpd healthcheck configuration
- template:
+ ansible.builtin.template:
src: httpd.conf.j2
dest: "{{ httpd_configuration_dir }}/healthcheck.conf"
owner: 0
group: 0
- mode: 0644
+ mode: "0644"
remember that computers suck.