Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync with upstream #3

Merged
merged 9 commits into from
Oct 1, 2024
3 changes: 3 additions & 0 deletions roles/calibre-web/tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
ignore_errors: True # Shows red errors, and continue...
#failed_when: False # Hides red errors, and continue...

# Official upstream instructions:
# apt install python3-pip python3-venv
# https://github.com/janeczku/calibre-web/wiki/Manual-installation
- name: "Install packages: imagemagick, python3-netifaces"
package:
name:
Expand Down
2 changes: 1 addition & 1 deletion roles/mediawiki/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# If nec, change them by editing /etc/iiab/local_vars.yml prior to installing!

mediawiki_major_version: "1.42" # "1.40" quotes nec if trailing zero
mediawiki_minor_version: 1
mediawiki_minor_version: 3
mediawiki_version: "{{ mediawiki_major_version }}.{{ mediawiki_minor_version }}"

mediawiki_download_base_url: "https://releases.wikimedia.org/mediawiki/{{ mediawiki_major_version }}"
Expand Down
2 changes: 1 addition & 1 deletion roles/tailscale/templates/iiab-vpn
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ echo -e " tailscale logout\n"
#tailscale status --json | jq -r '.Self,.Peer[] | .Tags[] + " " + .TailscaleIPs[] + " " + .HostName + " " + .DNSName + " " + .OS + " " + .Relay + " " + (.Online|tostring)' | sort -V | column -t
#echo -e '\e[44;1mVPN peers: ("true" in 6th column means online)\e[0m\n'
echo -e '\e[44;1mVPN peers: (6th column = online/offline)\e[0m\n'
tailscale status --json | jq -r '.Self,.Peer[] | .Tags[] + " " + .TailscaleIPs[] + " " + .HostName + " " + .DNSName + " " + .Relay + " XXX" + (.Online|tostring) + "XXX " + .OS' | sort -V | column -t | \
tailscale status --json | jq -r '.Self,.Peer[] | (if .Tags[] == "" then "-" else .Tags[] end) + " " + .TailscaleIPs[] + " " + .HostName + " " + .DNSName + " " + (if .Relay == "" then "-" else .Relay end) + " XXX" + (.Online|tostring) + "XXX " + .OS' | sort -V | column -t | \
while read l; do
line=$(echo "$l" | sed 's/ XXXtrueXXX /\\e[0;32m ✅\\e[0m/ ; s/ XXXfalseXXX /\\e[0;31m ❌ \\e[0m/')
echo -e "$line" $(tailscale whois --json $(echo $line | cut -d' ' -f2) | jq -r '.Node.Hostinfo | .Distro + " " + .DistroVersion + " " + .DeviceModel');
Expand Down
12 changes: 7 additions & 5 deletions roles/www_options/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,20 +94,22 @@


# 2022-06-30: internet_available var removed
- name: 'Test for Internet access, using: {{ iiab_download_url }}/heart-beat.txt'
- name: 'Test for Internet access, using: https://wiki.iiab.io'
get_url:
url: "{{ iiab_download_url }}/heart-beat.txt"
dest: /tmp/heart-beat.txt
#url: "{{ iiab_download_url }}/heart-beat.txt"
url: https://wiki.iiab.io
#dest: /tmp/heart-beat.txt
dest: /tmp/internet_access_test.html
#timeout: "{{ download_timeout }}"
# @jvonau recommends: 100sec is too much (keep 10sec default)
ignore_errors: True
#async: 10
#poll: 2
register: internet_access_test

- name: Remove downloaded Internet test file /tmp/heart-beat.txt
- name: Remove downloaded Internet test file /tmp/internet_access_test.html
file:
path: /tmp/heart-beat.txt
path: /tmp/internet_access_test.html
state: absent

- 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)
Expand Down
2 changes: 1 addition & 1 deletion vars/local_vars_unittest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ nginx_high_php_limits: False
apache_allow_sudo: False

# Toggle iiab-refresh-wiki-docs scraping for offline docs (http://box/info)
nodocs: False
nodocs: True


# 5-XO-SERVICES
Expand Down
Loading