aboutsummaryrefslogblamecommitdiffstats
path: root/roles/httpd_site_healthcheck/tasks/main.yml
blob: 10cd3c8a98cf801c5ce03f6a44568fd716bf218a (plain) (tree)






















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