summaryrefslogtreecommitdiffstats
path: root/tasks/httpd.yml
diff options
context:
space:
mode:
Diffstat (limited to 'tasks/httpd.yml')
-rw-r--r--tasks/httpd.yml13
1 files changed, 10 insertions, 3 deletions
diff --git a/tasks/httpd.yml b/tasks/httpd.yml
index 2138d35..22757d5 100644
--- a/tasks/httpd.yml
+++ b/tasks/httpd.yml
@@ -29,13 +29,20 @@
mode=0644
notify: Reload nginx
-- name: Copy /etc/nginx/sites-enabled/webmap
- copy: src=etc/nginx/sites-enabled/webmap
- dest=/etc/nginx/sites-enabled/webmap
+- name: Copy /etc/nginx/sites-available/webmap
+ copy: src=etc/nginx/sites-available/webmap
+ dest=/etc/nginx/sites-available/webmap
owner=root group=root
mode=0644
notify: Reload nginx
+- name: Create /etc/nginx/sites-enabled/webmap
+ file: src=../sites-available/webmap
+ dest=/etc/nginx/sites-enabled/webmap
+ owner=root group=root
+ state=link force=yes
+ notify: Reload nginx
+
- name: Create directory /var/www/webmap
file: path=/var/www/webmap
state=directory