blob: 7ac5d6517f769d354e5b8f7a28a967e06a50d974 (
plain) (
tree)
|
|
# 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
|