1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

get_url 'timeout: "{{ download_timeout }}"' in 10 roles

This commit is contained in:
root 2021-12-26 10:24:31 -05:00
parent a84cf2068c
commit 5f3708fe29
10 changed files with 28 additions and 4 deletions

View file

@ -14,11 +14,13 @@
get_url:
url: "{{ map_catalog_url }}/map-catalog.json" # http://download.iiab.io/content/OSM/vector-tiles
dest: "{{ iiab_etc_path }}" # /etc/iiab
timeout: "{{ download_timeout }}"
- name: Download {{ iiab_map_url }}/assets/regions.json to {{ iiab_etc_path }}
get_url:
url: "{{ iiab_map_url }}/assets/regions.json" # http://download.iiab.io/content/OSM/vector-tiles/maplist/hidden
dest: "{{ iiab_etc_path }}"
timeout: "{{ download_timeout }}"
# - name: Does 26M cities database {{ vector_map_path }}/viewer/cities1000.sqlite exist?
# stat:
@ -30,6 +32,7 @@
get_url:
url: "{{ iiab_map_url }}/regional-resources/cities1000.sqlite"
dest: "{{ vector_map_path }}/viewer/"
timeout: "{{ download_timeout }}"
# when: not cities_installed.stat.exists
- name: Symlink {{ doc_root }}/common/assets/map-catalog.json -> /etc/iiab/map-catalog.json
@ -55,6 +58,7 @@
get_url:
url: "{{ osm_repo_url }}/{{ maps_branch }}/osm-source/pages/test-page/build/{{ item }}" # https://raw.githubusercontent.com/iiab/maps / master
dest: "{{ vector_map_path }}/test-page/"
timeout: "{{ download_timeout }}"
with_items:
- test-page-bundle.js
- index.html
@ -64,6 +68,7 @@
get_url:
url: "{{ osm_repo_url }}/{{ maps_branch }}/osm-source/pages/viewer/build/{{ item }}"
dest: "{{ vector_map_path }}/viewer/"
timeout: "{{ download_timeout }}"
with_items:
- index.html
- viewer-bundle.js
@ -73,6 +78,7 @@
get_url:
url: "{{ osm_repo_url }}/{{ maps_branch }}/osm-source/pages/viewer/{{ item }}"
dest: "{{ vector_map_path }}/viewer/"
timeout: "{{ download_timeout }}"
with_items:
- mbtileinfo.php
- popup.css
@ -83,6 +89,7 @@
get_url:
url: "{{ map_catalog_url }}/planet_z0-z6_2019.mbtiles"
dest: "{{ vector_map_path }}/installer/"
timeout: "{{ download_timeout }}"
- name: Symlink {{ vector_map_path }}/installer/detail.mbtiles -> {{ vector_map_path }}/installer/planet_z0-z6_2019.mbtiles
file:
@ -100,11 +107,13 @@
get_url:
url: "{{ map_catalog_url }}/satellite_z0-z6_v3.mbtiles"
dest: "{{ vector_map_path }}/viewer/tiles/"
timeout: "{{ download_timeout }}"
- name: Download {index.html, installer-bundle.js} from {{ osm_repo_url }}/{{ maps_branch }}/osm-source/pages/installer/build/* to {{ vector_map_path }}/installer/ -- for map installer
get_url:
url: "{{ osm_repo_url }}/{{ maps_branch }}/osm-source/pages/installer/build/{{ item }}"
dest: "{{ vector_map_path }}/installer/"
timeout: "{{ download_timeout }}"
with_items:
- index.html
- installer-bundle.js
@ -113,6 +122,7 @@
get_url:
url: "{{ osm_repo_url }}/{{ maps_branch }}/osm-source/pages/installer/{{ item }}"
dest: "{{ vector_map_path }}/installer/"
timeout: "{{ download_timeout }}"
with_items:
- map.css
- style-osm.json
@ -124,6 +134,7 @@
get_url:
url: "{{ osm_repo_url }}/{{ maps_branch }}/osm-source/pages/viewer/assets/{{ item }}"
dest: "{{ vector_map_path }}/viewer/assets/"
timeout: "{{ download_timeout }}"
with_items:
- bboxes.geojson
- center.png
@ -170,6 +181,7 @@
url: "{{ osm_repo_url }}/{{ maps_branch }}/osm-source/pages/viewer/installer-index.redirect"
dest: "{{ vector_map_path }}/maplist/index.html"
force: yes
timeout: "{{ download_timeout }}"
- name: "Install packages for map installation: python3-geojson, python3-pil, python3-wget, php{{ php_version }}-sqlite3 (can also be installed by www_base/tasks/php-stem.yml)"
package:
@ -186,6 +198,7 @@
url: "{{ osm_repo_url }}/{{ maps_branch }}/osm-source/pages/viewer/scripts/{{ item }}"
dest: /usr/bin/
mode: 0755
timeout: "{{ download_timeout }}"
with_items:
- iiab-install-map-region
- iiab-extend-sat.py