summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--files/etc/nginx/sites-available/webmap (renamed from files/etc/nginx/sites-enabled/webmap)0
-rw-r--r--tasks/httpd.yml13
2 files changed, 10 insertions, 3 deletions
diff --git a/files/etc/nginx/sites-enabled/webmap b/files/etc/nginx/sites-available/webmap
index d16ab60..d16ab60 100644
--- a/files/etc/nginx/sites-enabled/webmap
+++ b/files/etc/nginx/sites-available/webmap
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