blob: 91aefd1a5b22eb17963cd94b2611607472e355b1 (
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 www htdocs dir
ansible.builtin.file:
path: "{{ obsd_www_chroot }}{{ obsd_www_htdocs_dir }}"
state: directory
owner: www
group: www
mode: "0775"
- name: Add initial dummy index.html file (if one does not exist)
ansible.builtin.copy:
src: index.html
dest: "{{ obsd_www_chroot }}{{ obsd_www_htdocs_dir }}/index.html"
force: false
owner: root
group: wheel
mode: "0664"
- name: Deploy www vhost fragment
ansible.builtin.template:
src: httpd.d/www.conf.j2
dest: "{{ obsd_httpd_conf_d }}/www.conf"
owner: root
group: wheel
mode: "0644"
notify: Reload httpd
|