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

@ -23,15 +23,15 @@
get_url:
url: "{{ docker_sh_url }}"
dest: "{{ azuracast_host_dir }}/"
timeout: "{{ download_timeout }}"
mode: 0755
timeout: "{{ download_timeout }}"
- name: AzuraCast - Download AzuraCast's docker-compose.yml sample from GitHub to {{ azuracast_host_dir }}
get_url:
url: "{{ docker_compose_url }}"
dest: "{{ azuracast_host_dir }}/docker-compose.yml"
timeout: "{{ download_timeout }}"
mode: 0755
timeout: "{{ download_timeout }}"
#- name: AzuraCast - Make changes to docker.sh script so it runs headless
# lineinfile:

View file

@ -11,6 +11,7 @@
get_url:
url: "{{ item.url }}"
dest: "{{ item.dest }}"
timeout: "{{ download_timeout }}"
with_items:
- { url: 'http://d.iiab.io/packages/brcmfmac43430-sdio.bin_2018-09-11_7.45.98.65', dest: '/lib/firmware/brcm/brcmfmac43430-sdio.bin.iiab' }
- { url: 'http://d.iiab.io/packages/brcmfmac43430-sdio.clm_blob_2018-09-11_7.45.98.65', dest: '/lib/firmware/brcm/brcmfmac43430-sdio.clm_blob.iiab' }

View file

@ -54,6 +54,7 @@
get_url:
url: "{{ gitea_integrity_url }}"
dest: "{{ gitea_checksum_path }}"
timeout: "{{ download_timeout }}"
- name: Verify Gitea binary with GPG signature
shell: |

View file

@ -8,6 +8,7 @@
url: "{{item.url}}"
dest: "{{ downloads_dir }}/{{ item.name }}.zip"
mode: 0440
timeout: "{{ download_timeout }}"
when: not minetest_mod.stat.exists
- name: Extract mod into mods of current game

View file

@ -63,6 +63,7 @@
get_url:
url: https://gitlab.com/craftyguy/networkd-dispatcher/-/raw/2.1/networkd-dispatcher
dest: /usr/bin/networkd-dispatcher
timeout: "{{ download_timeout }}"
when: internet_available and fix_dispatcher and ansible_distribution_release == "groovy"
# 2021-08-29 context from @jvonau: Fix is 'Groovy' specific, 21.04 and later
# should have the fix baked into a newer apt package installed by default.

View file

@ -3,6 +3,7 @@
get_url:
url: "{{ item.url }}"
dest: "{{ item.dest }}"
timeout: "{{ download_timeout }}"
with_items:
- url: https://raw.githubusercontent.com/node-red/raspbian-deb-package/master/resources/node-red-icon.svg
dest: /usr/share/icons/hicolor/scalable/apps/node-red-icon.svg
@ -22,6 +23,7 @@
url: "{{ item }}"
dest: /usr/bin
mode: a+x
timeout: "{{ download_timeout }}"
with_items:
- https://raw.githubusercontent.com/node-red/raspbian-deb-package/master/resources/node-red-start
- https://raw.githubusercontent.com/node-red/raspbian-deb-package/master/resources/node-red-stop

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

View file

@ -2,7 +2,7 @@
get_url:
url: "{{ phpmyadmin_dl_url }}" # e.g. https://files.phpmyadmin.net/phpMyAdmin/5.0.4/phpMyAdmin-5.0.4-all-languages.zip
dest: "{{ downloads_dir }}" # /opt/iiab/downloads
timeout: "{{ download_timeout }}" # 200
timeout: "{{ download_timeout }}"
when: internet_available
- name: Does {{ downloads_dir }}/{{ phpmyadmin_name_zip }} exist?
@ -18,7 +18,7 @@
dest: /opt
owner: "{{ apache_user }}" # www-data on debuntu
group: "{{ apache_user }}"
#timeout: "{{ download_timeout }}" # Use get_url if timeout (200s) required
#timeout: "{{ download_timeout }}" # Use get_url if timeout (200s) required
- name: Symlink /opt/phpmyadmin -> {{ phpmyadmin_name }}
file:

View file

@ -13,6 +13,7 @@
url: "{{ remoteit_device_url }}"
dest: "{{ downloads_dir }}/"
force: yes
timeout: "{{ download_timeout }}"
- name: Uninstall previously installed 'remoteit*' device apt package(s)
apt:
@ -37,6 +38,7 @@
dest: /usr/bin/remoteit
mode: 0755
force: yes
timeout: "{{ download_timeout }}"
# RECORD remoteit AS INSTALLED

View file

@ -45,18 +45,21 @@
get_url:
url: https://github.com/iiab/php-stem/raw/main/so/stem-armhf-{{ php_version }}.so
dest: /usr/lib/php/{{ php_extension }}/stem.so
timeout: "{{ download_timeout }}"
when: ansible_machine == "armv6l" or ansible_machine == "armv7l"
- name: Download https://github.com/iiab/php-stem/raw/main/so/stem-aarch64-{{ php_version }}.so to /usr/lib/php/{{ php_extension }}/stem.so (aarch64)
get_url:
url: https://github.com/iiab/php-stem/raw/main/so/stem-aarch64-{{ php_version }}.so
dest: /usr/lib/php/{{ php_extension }}/stem.so
timeout: "{{ download_timeout }}"
when: ansible_machine == "aarch64"
- name: Download https://github.com/iiab/php-stem/raw/main/so/stem-x64-{{ php_version }}.so to /usr/lib/php/{{ php_extension }}/stem.so (x86_64)
get_url:
url: https://github.com/iiab/php-stem/raw/main/so/stem-x64-{{ php_version }}.so
dest: /usr/lib/php/{{ php_extension }}/stem.so
timeout: "{{ download_timeout }}"
when: ansible_machine == "x86_64"