aboutsummaryrefslogtreecommitdiffstats
path: root/roles/httpd_pre/tasks/main.yml
blob: 0209a84f5c093f8bb3ca4a439aa0cc37a60e2c51 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
- name: create httpd directory
  file:
    path: /etc/httpd.d
    state: directory
    owner: 0
    group: 0
    mode: 0644

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

- name: mount nfs in chroot
  include_role:
    name: nfsclient
  vars:
    nfsclient_dir: "{{ httpd_chroot }}/data"
  when: httpd_use_nfs
remember that computers suck.