2017-10-27 00:42:44 +00:00
# Local Add-ons
2017-05-27 18:09:50 +00:00
2017-10-30 20:39:35 +00:00
- name : ...IS BEGINNING ====================================
2021-07-30 08:01:12 +00:00
meta : noop
2018-08-30 21:34:04 +00:00
2022-08-31 13:40:23 +00:00
- name : AZURACAST
include_role :
name : azuracast
when : azuracast_install
# Porting to Python 3 is complete: does this belong elsewhere?
2019-11-03 15:52:49 +00:00
- name : CAPTIVE PORTAL
2020-01-17 04:16:31 +00:00
include_role :
name : captiveportal
2020-10-16 20:46:19 +00:00
when : captiveportal_install
2019-11-02 10:27:42 +00:00
2023-10-01 22:34:19 +00:00
# WARNING: Since March 2023, 32-bit RasPiOS can act as 64-bit on RPi 4 and
# RPi 400 (unlike RPi 3!) SEE: https://github.com/iiab/iiab/pull/3516
- name : Run command 'dpkg --print-architecture' to identify OS architecture (CPU arch as revealed by ansible_architecture ~= ansible_machine is NO LONGER enough!)
command : dpkg --print-architecture
register : dpkg_arch
when : internetarchive_install
- name : Explain bypassing of Internet Archive install if 32-bit OS
fail : # FORCE IT RED THIS ONCE!
msg : "BYPASSING INTERNET ARCHIVE PER https://github.com/iiab/iiab/issues/3641 -- 'dpkg --print-architecture' output for your OS: {{ dpkg_arch.stdout }}"
when : internetarchive_install and not dpkg_arch.stdout is search("64")
ignore_errors : True
2021-08-03 21:09:58 +00:00
- name : INTERNETARCHIVE
include_role :
name : internetarchive
2023-10-01 22:34:19 +00:00
when : internetarchive_install and dpkg_arch.stdout is search("64")
2021-08-03 21:09:58 +00:00
2019-07-08 12:31:49 +00:00
- name : MINETEST
include_role :
name : minetest
2020-10-16 20:46:19 +00:00
when : minetest_install
2019-07-08 12:31:49 +00:00
2021-08-03 22:23:49 +00:00
- name : CALIBRE-WEB
2021-08-03 21:09:58 +00:00
include_role :
2021-08-03 22:23:49 +00:00
name : calibre-web
2023-03-18 16:25:02 +00:00
when : calibreweb_install
2021-08-03 21:09:58 +00:00
2021-08-03 22:23:49 +00:00
# KEEP NEAR THE VERY END as this installs dependencies from Debian's 'testing' branch!
2019-10-07 00:29:35 +00:00
- name : CALIBRE
include_role :
name : calibre
2020-10-16 20:46:19 +00:00
when : calibre_install
2019-10-07 00:29:35 +00:00
2021-08-03 22:23:49 +00:00
# Pulls in a large number of devel packages, via asterisk.yml -> 'install_prereq install'
# https://github.com/asterisk/asterisk/blob/master/contrib/scripts/install_prereq#L21-L35
- name : PBX - Asterisk & FreePBX
2019-10-07 00:29:35 +00:00
include_role :
2021-08-03 22:23:49 +00:00
name : pbx
when : pbx_install
2019-10-07 00:29:35 +00:00
2023-06-10 13:10:47 +00:00
- name : Read 'disk_used_a_priori' from /etc/iiab/iiab.ini
2023-05-27 18:07:13 +00:00
set_fact :
2023-06-10 13:10:47 +00:00
df1 : "{{ lookup('ansible.builtin.ini', 'disk_used_a_priori', section='summary', file=iiab_ini_file) }}"
2023-05-27 18:07:13 +00:00
2023-06-10 13:10:47 +00:00
- name : Record currently used disk space, to compare with original 'disk_used_a_priori'
shell : df -B1 --output=used / | tail -1
2023-05-27 18:07:13 +00:00
register : df2
2023-06-10 13:10:47 +00:00
- name : Add ESTIMATED 'iiab_software_disk_usage = {{ df2.stdout|int - df1|int }}' to {{ iiab_ini_file }}
2023-05-27 18:07:13 +00:00
ini_file :
path : "{{ iiab_ini_file }}" # /etc/iiab/iiab.ini
section : summary
option : iiab_software_disk_usage
2023-06-10 13:10:47 +00:00
value : "{{ df2.stdout|int - df1|int }}"
2023-05-27 18:07:13 +00:00
2017-10-30 20:39:35 +00:00
- name : Recording STAGE 9 HAS COMPLETED ====================
2018-02-13 03:13:46 +00:00
lineinfile :
2020-02-04 00:54:04 +00:00
path : "{{ iiab_env_file }}"
2018-02-13 03:13:46 +00:00
regexp : '^STAGE=*'
line : 'STAGE=9'