From bc72ead7c4be719a3cf24b4f063f2156d85126e7 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Sat, 1 Jun 2024 18:04:54 +0200 Subject: tasks/httpd.yml: Create /etc/nginx/sites-enabled/webmap as a symlink. --- tasks/httpd.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'tasks/httpd.yml') 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 -- cgit v1.2.3