mirror of
https://github.com/iiab/iiab.git
synced 2025-02-12 11:12:06 +00:00
remove internet_available install.yml and child tasks
This commit is contained in:
parent
1ae77a8b25
commit
b1ce429f50
19 changed files with 5 additions and 30 deletions
|
@ -25,7 +25,6 @@
|
|||
dest: "{{ azuracast_host_dir }}/"
|
||||
timeout: "{{ download_timeout }}"
|
||||
mode: 0755
|
||||
when: internet_available
|
||||
|
||||
- name: AzuraCast - Download AzuraCast's docker-compose.yml sample from GitHub to {{ azuracast_host_dir }}
|
||||
get_url:
|
||||
|
@ -33,7 +32,6 @@
|
|||
dest: "{{ azuracast_host_dir }}/docker-compose.yml"
|
||||
timeout: "{{ download_timeout }}"
|
||||
mode: 0755
|
||||
when: internet_available
|
||||
|
||||
#- name: AzuraCast - Make changes to docker.sh script so it runs headless
|
||||
# lineinfile:
|
||||
|
|
|
@ -33,7 +33,6 @@
|
|||
force: yes
|
||||
depth: 1
|
||||
version: "{{ calibreweb_version }}" # e.g. master, 0.6.5
|
||||
when: internet_available
|
||||
|
||||
## Ansible Pip Bug: Cannot use 'chdir' with 'env' https://github.com/ansible/ansible/issues/37912 (Patch landed)
|
||||
#- name: Download calibre-web dependencies into vendor subdirectory.
|
||||
|
@ -50,7 +49,6 @@
|
|||
virtualenv: "{{ calibreweb_venv_path }}" # /usr/local/calibre-web-py3
|
||||
virtualenv_site_packages: no
|
||||
virtualenv_command: python3 -m venv {{ calibreweb_venv_path }}
|
||||
when: internet_available
|
||||
|
||||
- name: Install /etc/systemd/system/calibre-web.service from template
|
||||
template:
|
||||
|
|
|
@ -49,13 +49,11 @@
|
|||
dest: "{{ gitea_install_path }}" # e.g. /library/gitea/bin/gitea-1.14
|
||||
mode: 0775
|
||||
timeout: "{{ download_timeout }}"
|
||||
when: internet_available
|
||||
|
||||
- name: Download Gitea GPG signature {{ gitea_integrity_url }} to {{ gitea_checksum_path }}
|
||||
get_url:
|
||||
url: "{{ gitea_integrity_url }}"
|
||||
dest: "{{ gitea_checksum_path }}"
|
||||
when: internet_available
|
||||
|
||||
- name: Verify Gitea binary with GPG signature
|
||||
shell: |
|
||||
|
|
|
@ -47,7 +47,6 @@
|
|||
args:
|
||||
chdir: "{{ internetarchive_dir }}"
|
||||
creates: "{{ internetarchive_dir }}/node_modules/@internetarchive/dweb-mirror/internetarchive"
|
||||
when: internet_available
|
||||
|
||||
- name: mkdir {{ content_base }}/archiveorg
|
||||
file:
|
||||
|
|
|
@ -48,7 +48,6 @@
|
|||
virtualenv_command: python3 -m venv "{{ jupyterhub_venv }}" # 2021-07-29: This works on RaspiOS 10, Debian 11, Ubuntu 20.04 and Mint 20 -- however if you absolutely must use the older Debian 10 -- you can work around errors "can't find Rust compiler" and "This package requires Rust >=1.41.0" if you (1) revert this line to 'virtualenv_command: virtualenv' AND (2) uncomment the line just below
|
||||
#virtualenv_python: python3 # 2021-07-29: Was needed when above line was 'virtualenv_command: virtualenv' (generally for Python 2)
|
||||
extra_args: "--no-cache-dir"
|
||||
when: internet_available
|
||||
|
||||
- name: "Install from template: {{ jupyterhub_venv }}/etc/jupyterhub/jupyterhub_config.py"
|
||||
template:
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
url: "{{ kalite_requirements }}"
|
||||
dest: "{{ pip_packages_dir }}/kalite.txt" # /opt/iiab/pip-packages/kalite.txt
|
||||
timeout: "{{ download_timeout }}"
|
||||
when: internet_available
|
||||
|
||||
# 2020-01-19: https://github.com/piwheels/packages/issues/74 says the following is no longer needed...
|
||||
#- name: Run 'mv /etc/pip.conf /etc/pip.conf.see-iiab-issue-2139' as "TEMPORARY" workaround (2020-01-17) for piwheels.org's setuptools Python 2/3 brokenness on RPi (https://github.com/iiab/iiab/issues/2139)
|
||||
|
@ -41,7 +40,6 @@
|
|||
virtualenv_command: /usr/bin/virtualenv
|
||||
virtualenv_python: python2.7
|
||||
extra_args: "--no-cache-dir"
|
||||
when: internet_available
|
||||
|
||||
- name: "Install from templates: venv wrapper /usr/bin/kalite, unit file /etc/systemd/system/kalite-serve.service"
|
||||
template:
|
||||
|
|
|
@ -37,7 +37,6 @@
|
|||
url: "{{ iiab_download_url }}/{{ kiwix_src_file }}" # http://download.iiab.io/packages
|
||||
dest: "{{ downloads_dir }}/{{ kiwix_src_file }}" # /opt/iiab/downloads
|
||||
timeout: "{{ download_timeout }}"
|
||||
when: internet_available
|
||||
|
||||
- name: "Create dirs, including parent dirs: {{ kiwix_path }}/bin (executables), {{ iiab_zim_path }}/content (ZIM files), {{ iiab_zim_path }}/index (legacy indexes) (by default 0755)"
|
||||
file:
|
||||
|
|
|
@ -37,7 +37,6 @@
|
|||
environment:
|
||||
KOLIBRI_HOME: "{{ kolibri_home }}" # these don't do a thing for now but
|
||||
KOLIBRI_USER: "{{ kolibri_user }}" # both can't hurt & Might Help Later
|
||||
when: internet_available
|
||||
|
||||
- name: 'Install from template: /etc/systemd/system/kolibri.service'
|
||||
template:
|
||||
|
|
|
@ -33,7 +33,6 @@
|
|||
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:
|
||||
- internet_available
|
||||
- lokole_commit is defined
|
||||
|
||||
# For development purposes -- To install a given pip version of Lokole, add
|
||||
|
@ -47,7 +46,6 @@
|
|||
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:
|
||||
- internet_available
|
||||
- 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"
|
||||
|
@ -57,7 +55,6 @@
|
|||
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:
|
||||
- internet_available
|
||||
- lokole_commit is undefined and lokole_version is undefined
|
||||
|
||||
- name: Compile translations
|
||||
|
|
|
@ -25,7 +25,6 @@
|
|||
timeout: "{{ download_timeout }}"
|
||||
#force: yes
|
||||
#backup: yes
|
||||
when: internet_available
|
||||
|
||||
- name: Unarchive (unpack) it to permanent location {{ mediawiki_abs_path }} ({{ apache_user }}:{{ apache_user }}, u+rw,g+r,o+r)
|
||||
unarchive:
|
||||
|
|
|
@ -100,7 +100,6 @@
|
|||
owner: "{{ apache_user }}" # www-data on debuntu
|
||||
group: "{{ apache_user }}"
|
||||
extra_opts: --strip-components=1 # Or use 'dest: /library/www' above
|
||||
when: internet_available
|
||||
|
||||
- name: Provision Nextcloud's MySQL DB, run Nextcloud's install wizard, etc
|
||||
include_tasks: setup.yml
|
||||
|
|
|
@ -48,11 +48,11 @@
|
|||
command: npm install -g --unsafe-perm node-red node-red-admin node-red-dashboard
|
||||
#command: npm install -g --unsafe-perm node-red@latest node-red-admin@latest node-red-dashboard@latest
|
||||
# Above "@latest" is recommended by https://nodered.org/docs/hardware/raspberrypi (SHOULD WE CONSIDER?)
|
||||
when: nodered_install and internet_available
|
||||
when: nodered_install
|
||||
|
||||
- name: "Globally 'npm install' 8 Node-RED learning examples for RPi: node-red-contrib-ibm-watson-iot, node-red-contrib-play-audio, node-red-node-ledborg, node-red-node-ping, node-red-node-pi-sense-hat, node-red-node-random, node-red-node-serialport, node-red-node-smooth"
|
||||
command: npm install -g --unsafe-perm node-red-contrib-ibm-watson-iot node-red-contrib-play-audio node-red-node-ledborg node-red-node-ping node-red-node-pi-sense-hat node-red-node-random node-red-node-serialport node-red-node-smooth
|
||||
when: nodered_install and internet_available and is_raspbian
|
||||
when: nodered_install and is_raspbian
|
||||
|
||||
## To protect pre-installed packages within /usr/lib/node_modules in graphical
|
||||
## desktop OS's like Raspbian Desktop & Ubermix, we now only install those that
|
||||
|
@ -93,7 +93,7 @@
|
|||
when: nodered_install and not is_raspbian
|
||||
|
||||
- include_tasks: rpi_desk.yml
|
||||
when: nodered_install and internet_available and is_raspbian
|
||||
when: nodered_install and is_raspbian
|
||||
|
||||
- name: Install /etc/systemd/system/nodered.service systemd unit file from template
|
||||
template:
|
||||
|
|
|
@ -20,7 +20,6 @@
|
|||
url: "{{ asterisk_url }}/{{ asterisk_src_file }}"
|
||||
dest: "{{ downloads_dir }}" # e.g. /opt/iiab/downloads/asterisk-18-current.tar.gz
|
||||
timeout: "{{ download_timeout }}"
|
||||
when: internet_available
|
||||
|
||||
- name: Asterisk - Check for {{ downloads_dir }}/{{ asterisk_src_file }}
|
||||
stat:
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
url: "{{ chan_dongle_url }}/{{ chan_dongle_src_file }}" # /opt/iiab/downloads/master.zip
|
||||
dest: "{{ downloads_dir }}/{{ chan_dongle_src_file }}" # Keep name as "master.zip" whereas browsers rename it to asterisk-chan-dongle-master.zip
|
||||
timeout: "{{ download_timeout }}"
|
||||
when: internet_available
|
||||
|
||||
- name: chan_dongle - Check for {{ downloads_dir }}/{{ chan_dongle_src_file }}
|
||||
stat:
|
||||
|
|
|
@ -71,7 +71,6 @@
|
|||
url: "{{ freepbx_url }}/{{ freepbx_src_file }}"
|
||||
dest: "{{ downloads_dir }}" # e.g. /opt/iiab/downloads/freepbx-16.0-latest.tgz
|
||||
timeout: "{{ download_timeout }}"
|
||||
when: internet_available
|
||||
|
||||
- name: FreePBX - Check for {{ downloads_dir }}/{{ freepbx_src_file }}
|
||||
stat:
|
||||
|
|
|
@ -16,7 +16,6 @@
|
|||
owner: "{{ apache_user }}" # www-data on debuntu
|
||||
group: "{{ apache_user }}"
|
||||
#timeout: "{{ download_timeout }}" # Use get_url if timeout (200s) required
|
||||
when: internet_available
|
||||
|
||||
- name: Symlink /opt/phpmyadmin -> {{ phpmyadmin_name }}
|
||||
file:
|
||||
|
|
|
@ -36,7 +36,6 @@
|
|||
version: "{{ sugarizer_git_version }}"
|
||||
force: yes
|
||||
depth: 1
|
||||
when: internet_available
|
||||
|
||||
- name: Symlink /opt/iiab/sugarizer -> /opt/iiab/{{ sugarizer_dir_version }}
|
||||
file:
|
||||
|
@ -69,7 +68,6 @@
|
|||
version: "{{ sugarizer_server_git_version }}"
|
||||
force: yes
|
||||
depth: 1
|
||||
when: internet_available
|
||||
|
||||
- name: Symlink /opt/iiab/sugarizer-server -> /opt/iiab/{{ sugarizer_server_dir_version }}
|
||||
file:
|
||||
|
@ -133,7 +131,7 @@
|
|||
args:
|
||||
chdir: "{{ iiab_base }}/sugarizer-server"
|
||||
#creates: "{{ iiab_base }}/sugarizer-server/node_modules" # OLD WAY 2
|
||||
when: internet_available # "npm install" generally requires Internet access
|
||||
# when: internet_available # "npm install" generally requires Internet access
|
||||
# when: internet_available and git_sug_server_output.changed # OLD WAY 3
|
||||
# when: internet_available and not is_F18 and not node_modules_exists # OLD WAY 1
|
||||
|
||||
|
@ -144,7 +142,6 @@
|
|||
command: npm install --allow-root --unsafe-perm=true path-prefix-proxy
|
||||
args:
|
||||
chdir: "{{ iiab_base }}/sugarizer-server"
|
||||
when: internet_available
|
||||
|
||||
|
||||
# 5. CONFIG FILES
|
||||
|
|
|
@ -44,7 +44,6 @@
|
|||
dest: "{{ downloads_dir }}"
|
||||
timeout: "{{ download_timeout }}"
|
||||
register: wp_download_output
|
||||
when: internet_available
|
||||
|
||||
- name: Symlink {{ downloads_dir }}/wordpress.tar.gz -> {{ wp_download_output.dest }}
|
||||
file:
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
package:
|
||||
name: yarn
|
||||
state: latest
|
||||
when: internet_available and is_debuntu
|
||||
when: is_debuntu
|
||||
|
||||
|
||||
# RECORD Yarn AS INSTALLED
|
||||
|
|
Loading…
Reference in a new issue