blob: 79b63acb03977d6bd5c807080ea948f7920743b1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# website ~~ roles/website/tasks/main.yml
# website setup
---
- name: ensure website dir exists
file:
path: "/var/www/htdocs/{{ global.domain_name }}"
owner: www
group: www
mode: 0550
state: directory
- name: generate website configuration
template:
src: httpd.conf.j2
dest: "/etc/httpd.d/{{ global.domain_name }}.conf"
owner: "{{ user_root }}"
group: "{{ group_root }}"
mode: 0644
|