summaryrefslogtreecommitdiffstats
path: root/tasks/httpd.yml
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2024-06-01 18:04:54 +0200
committerGuilhem Moulin <guilhem@fripost.org>2024-06-01 18:05:02 +0200
commitbc72ead7c4be719a3cf24b4f063f2156d85126e7 (patch)
treebf48540656454ddf8846c1ceefc76099ced46ae0 /tasks/httpd.yml
parent20708ade1f56a1ef84b22ecdca42af9f9bd45c69 (diff)
tasks/httpd.yml: Create /etc/nginx/sites-enabled/webmap as a symlink.
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