diff --git a/roles/osm-vector-maps/tasks/main.yml b/roles/osm-vector-maps/tasks/main.yml index c698e3644..b17f97c2e 100644 --- a/roles/osm-vector-maps/tasks/main.yml +++ b/roles/osm-vector-maps/tasks/main.yml @@ -69,17 +69,17 @@ src: map_functions.js dest: '{{ vector_map_path }}/maplist/assets' -- name: Install /etc/nginx/conf.d/osm-vector-maps.conf from template +- name: Install {{ nginx_config_dir }}/osm-vector-maps.conf from template template: src: osm-vector-maps-nginx.conf - dest: "/etc/nginx/conf.d/osm-vector-maps-nginx.conf" - when: osm_vector_maps_enabled | bool + dest: "{{ nginx_config_dir }}/osm-vector-maps-nginx.conf" + when: osm_vector_maps_enabled -- name: Remove config /etc/nginx/conf,d/osm-vector-maps.conf (debuntu) +- name: Remove {{ nginx_config_dir }}/osm-vector-maps.conf (debuntu) file: - path: /etc/nginx/conf.d/osm-vector-maps-nginx.conf + path: "{{ nginx_config_dir }}/osm-vector-maps-nginx.conf" state: absent - when: not osm_vector_maps_enabled | bool + when: not osm_vector_maps_enabled #- name: Does the {{ vector_map_path }}/index.html redirect already exist? # stat: @@ -94,7 +94,7 @@ dest: "{{ vector_map_path }}/index.html" #when: not osm_redirect.stat.exists -- name: Reload Apache service ({{ apache_service }}) # e.g. apache2 +- name: Reload nginx systemd: - name: "{{ apache_service }}" + name: nginx state: reloaded