1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 03:32:12 +00:00

consistent indentation & code readability

This commit is contained in:
A Holt 2019-04-16 12:57:45 -04:00 committed by GitHub
parent a7141c1c0e
commit a863c2e9e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,36 +8,35 @@
- name: Fetch the catalog for osm maps - name: Fetch the catalog for osm maps
get_url: get_url:
url: "{{ iiab_osm_url }}/assets/regions.json" url: "{{ iiab_osm_url }}/assets/regions.json"
dest: '{{ osm_vector_path }}/maplist/assets/' dest: '{{ osm_vector_path }}/maplist/assets/'
- name: Create a link to osm catalog in /common/assets - name: Create a link to osm catalog in /common/assets
file: file:
src: "{{ osm_vector_path }}/maplist/assets/regions.json" src: "{{ osm_vector_path }}/maplist/assets/regions.json"
dest: "{{ doc_root }}/common/assets/regions.json" dest: "{{ doc_root }}/common/assets/regions.json"
state: link state: link
- name: Fetch the javascript bundle with openlayers for test page - name: Fetch the javascript bundle with openlayers for test page
get_url: get_url:
url: "{{ iiab_osm_url }}/../main.js" url: "{{ iiab_osm_url }}/../main.js"
dest: '{{ osm_vector_path }}/maplist/' dest: '{{ osm_vector_path }}/maplist/'
- name: Fetch the index.html for test page - name: Fetch the index.html for test page
template: template:
src: "index.html" src: "index.html"
dest: '{{ osm_vector_path }}/maplist/index.html' dest: '{{ osm_vector_path }}/maplist/index.html'
# Bboxes are currently square. But geofabrik has non-rectangular bboxes # Bboxes (bounding boxes) are currently square. But geofabrik has non-rectangular bboxes.
# So bring the bounding box definition from cloud (bboxes.geojson is big) # So bring the bounding box definition from cloud (bboxes.geojson is big)
- name: Fetch the bounding box description for osm maps - name: Fetch the bounding box description for osm maps
get_url: get_url:
url: "{{ iiab_osm_url }}/assets/bboxes.geojson" url: "{{ iiab_osm_url }}/assets/bboxes.geojson"
dest: '{{ osm_vector_path }}/maplist/assets/' dest: '{{ osm_vector_path }}/maplist/assets/'
- name: Install a package that helps with geojson - name: Install python-geojson package, that helps with geojson
package: package:
name: name: python-geojson
- python-geojson
state: present state: present
- name: Install the script to update osm catalog - name: Install the script to update osm catalog
@ -96,6 +95,6 @@
- name: Do not overwrite if it already exists - name: Do not overwrite if it already exists
copy: copy:
src: en-map_test.json src: en-map_test.json
dest: '{{ menu_def_dir }}/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 when: menu_def.stat.exists is defined and not menu_def.stat.exists