aboutsummaryrefslogtreecommitdiffstats
path: root/roles/httpd_pre/tasks/main.yml
blob: 025b9d7a3940b692432b4bff95cd12d3723ed9a1 (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
26
27
- name: include httpd role vars
  include_vars: "{{ inventory_dir }}/roles/httpd/defaults/main.yml"

- name: ensure httpd.d directory exists
  file:
    path: /etc/httpd.d
    state: directory
    owner: "{{ user_root }}"
    group: "{{ group_root }}"
    mode: 0644

- name: ensure htpasswd directory exists
  file:
    path: /var/www/htpasswd
    state: directory
    owner: "www"
    group: "www"
    mode: 0700

- name: ensure data volume is mounted in chroot
  include_role:
    name: nfsclient
  vars:
    nfsclient_dir: "/var/www/data"
    nfsclient_server: "{{ global.nfs_server }}"
    nfsclient_server_dir: "{{ global.nfs_server_dir }}/{{ ansible_host }}"
  when: httpd_use_nfs is defined and httpd_use_nfs
remember that computers suck.