From a863c2e9e4670bd80f95c6cc297c1222000a5785 Mon Sep 17 00:00:00 2001 From: A Holt Date: Tue, 16 Apr 2019 12:57:45 -0400 Subject: [PATCH] consistent indentation & code readability --- roles/osm-vector/tasks/main.yml | 35 ++++++++++++++++----------------- 1 file changed, 17 insertions(+), 18 deletions(-) diff --git a/roles/osm-vector/tasks/main.yml b/roles/osm-vector/tasks/main.yml index dcaa4b762..e8542f62c 100644 --- a/roles/osm-vector/tasks/main.yml +++ b/roles/osm-vector/tasks/main.yml @@ -8,36 +8,35 @@ - name: Fetch the catalog for osm maps get_url: - url: "{{ iiab_osm_url }}/assets/regions.json" - dest: '{{ osm_vector_path }}/maplist/assets/' + url: "{{ iiab_osm_url }}/assets/regions.json" + dest: '{{ osm_vector_path }}/maplist/assets/' - name: Create a link to osm catalog in /common/assets file: - src: "{{ osm_vector_path }}/maplist/assets/regions.json" - dest: "{{ doc_root }}/common/assets/regions.json" - state: link + src: "{{ osm_vector_path }}/maplist/assets/regions.json" + dest: "{{ doc_root }}/common/assets/regions.json" + state: link - name: Fetch the javascript bundle with openlayers for test page get_url: - url: "{{ iiab_osm_url }}/../main.js" - dest: '{{ osm_vector_path }}/maplist/' + url: "{{ iiab_osm_url }}/../main.js" + dest: '{{ osm_vector_path }}/maplist/' - name: Fetch the index.html for test page template: - src: "index.html" - dest: '{{ osm_vector_path }}/maplist/index.html' + src: "index.html" + dest: '{{ osm_vector_path }}/maplist/index.html' -# Bboxes are currently square. But geofabrik has non-rectangular bboxes -# So bring the bounding box definition from cloud (bboxes.geojson is big) +# Bboxes (bounding boxes) are currently square. But geofabrik has non-rectangular bboxes. +# So bring the bounding box definition from cloud (bboxes.geojson is big) - name: Fetch the bounding box description for osm maps get_url: - url: "{{ iiab_osm_url }}/assets/bboxes.geojson" - dest: '{{ osm_vector_path }}/maplist/assets/' + url: "{{ iiab_osm_url }}/assets/bboxes.geojson" + dest: '{{ osm_vector_path }}/maplist/assets/' -- name: Install a package that helps with geojson +- name: Install python-geojson package, that helps with geojson package: - name: - - python-geojson + name: python-geojson state: present - name: Install the script to update osm catalog @@ -96,6 +95,6 @@ - name: Do not overwrite if it already exists copy: - src: en-map_test.json - dest: '{{ menu_def_dir }}/en-map_test.json' + src: en-map_test.json + dest: '{{ menu_def_dir }}/en-map_test.json' when: menu_def.stat.exists is defined and not menu_def.stat.exists