aboutsummaryrefslogtreecommitdiffstats
path: root/roles/httpd_site_healthcheck/tasks/main.yml
blob: 7cb2edb4fbe431eb605820dc4c54f395a1534753 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
---

- 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"
remember that computers suck.