mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Remove 'when: internet_available' from 5 files + Clean 3 similar
This commit is contained in:
parent
6e5c5f560e
commit
1c7c30d8f3
8 changed files with 12 additions and 16 deletions
|
@ -14,4 +14,4 @@
|
|||
url: "{{ iiab_download_url }}/iwlwifi-8000C-13.ucode"
|
||||
dest: /lib/firmware
|
||||
timeout: "{{ download_timeout }}"
|
||||
when: internet_available and usb_NUC6.stdout|int > 0
|
||||
when: usb_NUC6.stdout|int > 0
|
||||
|
|
|
@ -49,7 +49,7 @@
|
|||
|
||||
- name: Install/Upgrade to Calibre testing .deb's (not rpi)
|
||||
command: scripts/calibre-install-latest.sh
|
||||
when: (not is_raspbian)
|
||||
when: not is_raspbian
|
||||
#when: (not is_raspbian) and (is_debian_9 or is_ubuntu_16) and internet_available
|
||||
#when: not is_raspbian and not is_ubuntu_18 and internet_available
|
||||
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
# meta: end_play
|
||||
fail:
|
||||
msg: "{{ downloads_dir }}/calibre-installer.py and an Internet connection are REQUIRED in order to install Calibre!"
|
||||
when: (not calib_inst.stat.exists)
|
||||
when: not calib_inst.stat.exists
|
||||
#when: (not calib_inst.stat.exists) or (not internet_available and not calib_uninst.stat.exists)
|
||||
|
||||
# INSTALL THE LATEST CALIBRE (calibre, calibredb, calibre-server etc)
|
||||
|
|
|
@ -31,24 +31,24 @@
|
|||
|
||||
- block: # BEGIN 2-STANZA BLOCK
|
||||
|
||||
- name: "UPGRADE: Stop 'internetarchive' systemd service, if internetarchive_installed is defined and internet_available"
|
||||
- name: "UPGRADE: Stop 'internetarchive' systemd service, if internetarchive_installed is defined"
|
||||
systemd:
|
||||
name: internetarchive
|
||||
daemon_reload: yes
|
||||
state: stopped
|
||||
|
||||
- name: "UPGRADE: Run 'yarn upgrade' in {{ internetarchive_dir }}, if internetarchive_installed is defined and internet_available"
|
||||
- name: "UPGRADE: Run 'yarn upgrade' in {{ internetarchive_dir }}, if internetarchive_installed is defined"
|
||||
shell: yarn config set child-concurrency 1 && yarn install && yarn upgrade
|
||||
args:
|
||||
chdir: "{{ internetarchive_dir }}"
|
||||
|
||||
when: internetarchive_installed is defined and internet_available # END 2-STANZA BLOCK
|
||||
when: internetarchive_installed is defined # END 2-STANZA BLOCK
|
||||
|
||||
# "ELSE" INSTALL...
|
||||
|
||||
- name: Install Internet Archive if 'internetarchive_installed' not defined, e.g. in {{ iiab_state_file }} # /etc/iiab/iiab_state.yml
|
||||
include_tasks: install.yml
|
||||
when: internetarchive_installed is undefined and internet_available
|
||||
when: internetarchive_installed is undefined
|
||||
|
||||
|
||||
# ENABLE/DISABLE/RESTART SYSTEMD SERVICE & WEB SERVERS AS NEC ?
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
url: "{{ kiwix_apk_src }}" # https://download.kiwix.org/release/kiwix-android/kiwix.apk
|
||||
dest: "{{ doc_root }}{{ kiwix_apk_url }}"
|
||||
timeout: "{{ download_timeout }}"
|
||||
when: internet_available
|
||||
|
||||
- name: Symlink {{ doc_root }}{{ kiwix_apk_url }}/zims -> {{ iiab_zim_path }}/content
|
||||
file:
|
||||
|
|
|
@ -32,8 +32,7 @@
|
|||
virtualenv: "{{ lokole_venv }}"
|
||||
virtualenv_command: python3 -m venv "{{ lokole_venv }}"
|
||||
extra_args: --no-cache-dir # To avoid caching issues e.g. soon after new releases hit https://pypi.org/project/opwen-email-client/
|
||||
when:
|
||||
- lokole_commit is defined
|
||||
when: lokole_commit is defined
|
||||
|
||||
# For development purposes -- To install a given pip version of Lokole, add
|
||||
# the following line to roles/lokole/defaults/main.yml:
|
||||
|
@ -45,8 +44,7 @@
|
|||
virtualenv: "{{ lokole_venv }}"
|
||||
virtualenv_command: python3 -m venv "{{ lokole_venv }}"
|
||||
extra_args: --no-cache-dir # To avoid caching issues e.g. soon after new releases hit https://pypi.org/project/opwen-email-client/
|
||||
when:
|
||||
- lokole_version is defined
|
||||
when: lokole_version is defined
|
||||
|
||||
- name: "DEFAULT: pip install opwen_email_client (Lokole, latest available version) from PyPI to {{ lokole_venv }}, if above vars both UNdefined"
|
||||
pip:
|
||||
|
@ -54,8 +52,7 @@
|
|||
virtualenv: "{{ lokole_venv }}"
|
||||
virtualenv_command: python3 -m venv "{{ lokole_venv }}"
|
||||
extra_args: --no-cache-dir # To avoid caching issues e.g. soon after new releases hit https://pypi.org/project/opwen-email-client/
|
||||
when:
|
||||
- lokole_commit is undefined and lokole_version is undefined
|
||||
when: lokole_commit is undefined and lokole_version is undefined
|
||||
|
||||
- name: Compile translations
|
||||
shell: |
|
||||
|
|
|
@ -63,7 +63,7 @@
|
|||
get_url:
|
||||
url: https://gitlab.com/craftyguy/networkd-dispatcher/-/raw/2.1/networkd-dispatcher
|
||||
dest: /usr/bin/networkd-dispatcher
|
||||
when: internet_available and fix_dispatcher and ansible_distribution_release == "groovy"
|
||||
when: fix_dispatcher and ansible_distribution_release == "groovy"
|
||||
|
||||
#- name: Supply netplan template
|
||||
# template:
|
||||
|
|
|
@ -158,7 +158,7 @@
|
|||
|
||||
- name: Run /usr/bin/iiab-refresh-wiki-docs (scraper script) to create http://box/info offline documentation. (This script was installed in Stage 3 = roles/3-base-server/tasks/main.yml, which ran roles/www_base/tasks/main.yml)
|
||||
command: /usr/bin/iiab-refresh-wiki-docs
|
||||
when: internet_available and not nodocs
|
||||
when: not nodocs
|
||||
|
||||
|
||||
- name: (Re)Start '{{ apache_service }}' systemd service, if installed & enabled
|
||||
|
|
Loading…
Add table
Reference in a new issue