From af1432f328924ad316cf055e89a0875011d429e2 Mon Sep 17 00:00:00 2001 From: George Hunt Date: Fri, 21 Aug 2020 22:32:40 +0000 Subject: [PATCH] start nginx for OSM always --- roles/osm-vector-maps/tasks/nginx.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/roles/osm-vector-maps/tasks/nginx.yml b/roles/osm-vector-maps/tasks/nginx.yml index b764220d6..c02aa8281 100644 --- a/roles/osm-vector-maps/tasks/nginx.yml +++ b/roles/osm-vector-maps/tasks/nginx.yml @@ -2,13 +2,14 @@ template: src: osm-vector-maps-nginx.conf.j2 dest: "{{ nginx_conf_dir }}/osm-vector-maps-nginx.conf" # /etc/nginx/conf.d - when: osm_vector_maps_enabled | bool + when: osm_vector_maps_install | bool +# Note that the above change from enabled->install is required by the OSM command line installer - name: Disable http://box/maps & http://box/osm-vector-maps via NGINX, by removing {{ nginx_conf_dir }}/osm-vector-maps-nginx.conf file: path: "{{ nginx_conf_dir }}/osm-vector-maps-nginx.conf" # /etc/nginx/conf.d state: absent - when: not osm_vector_maps_enabled + when: not osm_vector_maps_install - name: Reload 'nginx' systemd service systemd: