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

# httpd ~~ roles/httpd_pre/main.yml
# prerequisites for `httpd` role

---

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