blob: 7ac5d6517f769d354e5b8f7a28a967e06a50d974 (
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
|
# 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
- name: ensure httpd is restarted
service: name=httpd state=restarted enabled=true
|