From 1dfb2f85aadd3d98147cc0d8da62f2593ad1a449 Mon Sep 17 00:00:00 2001 From: A Holt Date: Thu, 31 Oct 2019 17:29:51 -0400 Subject: [PATCH 01/10] Install package python-virtualenv for KA Lite and Calibre-Web --- roles/2-common/tasks/packages.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/roles/2-common/tasks/packages.yml b/roles/2-common/tasks/packages.yml index 89b3bad4e..2b65410ee 100644 --- a/roles/2-common/tasks/packages.yml +++ b/roles/2-common/tasks/packages.yml @@ -63,3 +63,8 @@ - usbutils - wget state: present + +- name: Install package python-virtualenv for KA Lite and Calibre-Web + package: + name: python-virtualenv + state: present From e40b476787ac238de180d233f7d44256da0ddff6 Mon Sep 17 00:00:00 2001 From: A Holt Date: Thu, 31 Oct 2019 17:31:34 -0400 Subject: [PATCH 02/10] Update packages.yml --- roles/2-common/tasks/packages.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/2-common/tasks/packages.yml b/roles/2-common/tasks/packages.yml index 2b65410ee..506a75ea5 100644 --- a/roles/2-common/tasks/packages.yml +++ b/roles/2-common/tasks/packages.yml @@ -66,5 +66,5 @@ - name: Install package python-virtualenv for KA Lite and Calibre-Web package: - name: python-virtualenv + name: python-virtualenv state: present From a5f2b8957980908be8e4d171f71eaa215a168ce2 Mon Sep 17 00:00:00 2001 From: A Holt Date: Thu, 31 Oct 2019 17:33:43 -0400 Subject: [PATCH 03/10] Update iiab-install --- iiab-install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iiab-install b/iiab-install index 43851997c..438deabf8 100755 --- a/iiab-install +++ b/iiab-install @@ -10,7 +10,7 @@ CWD=`pwd` OS=`grep ^ID= /etc/*release|cut -d= -f2` OS=${OS//\"/} MIN_RPI_KERN=4.9.59-v7+ # UPDATE THIS SOON...when Raspbian's Oct 2019 kernels are finally fixed (https://github.com/iiab/iiab/issues/1993 etc) -MIN_ANSIBLE_VER=2.9.0 +MIN_ANSIBLE_VER=2.8.7 # Ansible 2.8.3 and 2.8.6 have serious bugs, preventing their use with IIAB. if [ ! -f /etc/iiab/local_vars.yml ]; then From c26f32ac63b8b7ffef40fa5dbad7fb2b8b26c205 Mon Sep 17 00:00:00 2001 From: A Holt Date: Thu, 31 Oct 2019 17:38:05 -0400 Subject: [PATCH 04/10] Update iiab-install --- iiab-install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iiab-install b/iiab-install index 438deabf8..56fba4684 100755 --- a/iiab-install +++ b/iiab-install @@ -9,7 +9,7 @@ ARGS="" CWD=`pwd` OS=`grep ^ID= /etc/*release|cut -d= -f2` OS=${OS//\"/} -MIN_RPI_KERN=4.9.59-v7+ # UPDATE THIS SOON...when Raspbian's Oct 2019 kernels are finally fixed (https://github.com/iiab/iiab/issues/1993 etc) +MIN_RPI_KERN=4.19.79 # Can be further updated if necessary, when Raspbian's Oct 2019 kernels are more offially fixed such that running 'rpi-update' will no longer be nec soon, see: https://github.com/iiab/iiab/issues/1993 MIN_ANSIBLE_VER=2.8.7 # Ansible 2.8.3 and 2.8.6 have serious bugs, preventing their use with IIAB. if [ ! -f /etc/iiab/local_vars.yml ]; then From 4a313a013e78c4b3f585aaddf5d0014f7e3d961d Mon Sep 17 00:00:00 2001 From: A Holt Date: Thu, 31 Oct 2019 18:04:10 -0400 Subject: [PATCH 05/10] Document that roles/kalite (and prob also roles/calibre-web) need pkg python-virtualenv for now --- roles/2-common/tasks/packages.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/2-common/tasks/packages.yml b/roles/2-common/tasks/packages.yml index 506a75ea5..7026ff2ff 100644 --- a/roles/2-common/tasks/packages.yml +++ b/roles/2-common/tasks/packages.yml @@ -64,6 +64,7 @@ - wget state: present +# 2019-10-31: roles/kalite crashed without the following python-virtualenv -- weirdly python3-virtualenv was installed on Raspbian (not sure why) but insufficient - name: Install package python-virtualenv for KA Lite and Calibre-Web package: name: python-virtualenv From 766d2b618ba8924f9a04139465f9d9675874b238 Mon Sep 17 00:00:00 2001 From: A Holt Date: Thu, 31 Oct 2019 18:04:58 -0400 Subject: [PATCH 06/10] Update iiab-install --- iiab-install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iiab-install b/iiab-install index 56fba4684..baa40c55c 100755 --- a/iiab-install +++ b/iiab-install @@ -9,7 +9,7 @@ ARGS="" CWD=`pwd` OS=`grep ^ID= /etc/*release|cut -d= -f2` OS=${OS//\"/} -MIN_RPI_KERN=4.19.79 # Can be further updated if necessary, when Raspbian's Oct 2019 kernels are more offially fixed such that running 'rpi-update' will no longer be nec soon, see: https://github.com/iiab/iiab/issues/1993 +MIN_RPI_KERN=4.19.79 # Can be further updated if necessary, when Raspbian's Oct 2019 kernels are more officially fixed such that running 'rpi-update' will no longer be nec soon, see: https://github.com/iiab/iiab/issues/1993 MIN_ANSIBLE_VER=2.8.7 # Ansible 2.8.3 and 2.8.6 have serious bugs, preventing their use with IIAB. if [ ! -f /etc/iiab/local_vars.yml ]; then From 22d34950610d99b9baf0b725516bafeb47b56e13 Mon Sep 17 00:00:00 2001 From: A Holt Date: Thu, 31 Oct 2019 18:24:33 -0400 Subject: [PATCH 07/10] mysql/tasks/main.yml comment: TIMETAMPED -> TIMESTAMPED --- roles/mysql/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/mysql/tasks/main.yml b/roles/mysql/tasks/main.yml index 966148a22..254c29bfc 100644 --- a/roles/mysql/tasks/main.yml +++ b/roles/mysql/tasks/main.yml @@ -69,7 +69,7 @@ path: /lib/systemd/system/mariadb.service register: mariadb_unit_file -- name: Copy pkg's /lib/systemd/system/mariadb.service to /etc/systemd/system/ to be customized (CREATES TIMETAMPED BACKUPS OF /etc/systemd/system/mariadb.service e.g. IF OPERATOR CUSTOMIZED IT, EVEN DESPITE WARNING BELOW!) +- name: Copy pkg's /lib/systemd/system/mariadb.service to /etc/systemd/system/ to be customized (CREATES TIMESTAMPED BACKUPS OF /etc/systemd/system/mariadb.service e.g. IF OPERATOR CUSTOMIZED IT, EVEN DESPITE WARNING BELOW!) copy: force: yes backup: yes From 84ffa1ed3a67f6cc64c49d3284a123131d782167 Mon Sep 17 00:00:00 2001 From: A Holt Date: Fri, 1 Nov 2019 10:51:49 -0400 Subject: [PATCH 08/10] Only install python-virtualenv on older OS's (where does python3-virtualenv come from?) --- roles/2-common/tasks/packages.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/2-common/tasks/packages.yml b/roles/2-common/tasks/packages.yml index 7026ff2ff..03a866222 100644 --- a/roles/2-common/tasks/packages.yml +++ b/roles/2-common/tasks/packages.yml @@ -66,6 +66,7 @@ # 2019-10-31: roles/kalite crashed without the following python-virtualenv -- weirdly python3-virtualenv was installed on Raspbian (not sure why) but insufficient - name: Install package python-virtualenv for KA Lite and Calibre-Web - package: + package: name: python-virtualenv state: present + when: is_raspbian_9 or is_raspbian_10 or is_debian_9 or is_ubuntu_16 From 7c70f31aa58f4bf0c3fa518ea756291dfc9e15f1 Mon Sep 17 00:00:00 2001 From: A Holt Date: Fri, 1 Nov 2019 10:54:09 -0400 Subject: [PATCH 09/10] python-virtualenv context (raspbian-9, raspbian-10, debian-9 or ubuntu-16) --- roles/2-common/tasks/packages.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/2-common/tasks/packages.yml b/roles/2-common/tasks/packages.yml index 03a866222..3a3a699fc 100644 --- a/roles/2-common/tasks/packages.yml +++ b/roles/2-common/tasks/packages.yml @@ -65,7 +65,7 @@ state: present # 2019-10-31: roles/kalite crashed without the following python-virtualenv -- weirdly python3-virtualenv was installed on Raspbian (not sure why) but insufficient -- name: Install package python-virtualenv for KA Lite and Calibre-Web +- name: Install package python-virtualenv for KA Lite and Calibre-Web (if raspbian-9, raspbian-10, debian-9 or ubuntu-16) package: name: python-virtualenv state: present From f3bee75e5f0723627f4147a569319a29ae9c748d Mon Sep 17 00:00:00 2001 From: A Holt Date: Fri, 1 Nov 2019 11:05:13 -0400 Subject: [PATCH 10/10] Install python-virtualenv on 6 "older" OS's --- roles/2-common/tasks/packages.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/2-common/tasks/packages.yml b/roles/2-common/tasks/packages.yml index 3a3a699fc..35f55f499 100644 --- a/roles/2-common/tasks/packages.yml +++ b/roles/2-common/tasks/packages.yml @@ -65,8 +65,8 @@ state: present # 2019-10-31: roles/kalite crashed without the following python-virtualenv -- weirdly python3-virtualenv was installed on Raspbian (not sure why) but insufficient -- name: Install package python-virtualenv for KA Lite and Calibre-Web (if raspbian-9, raspbian-10, debian-9 or ubuntu-16) +- name: Install package python-virtualenv for KA Lite and Calibre-Web, on older OS's (raspbian-9, raspbian-10, debian-9, debian-10, ubuntu-16, ubuntu-18) package: name: python-virtualenv state: present - when: is_raspbian_9 or is_raspbian_10 or is_debian_9 or is_ubuntu_16 + when: is_raspbian_9 or is_raspbian_10 or is_debian_9 or is_debian_10 or is_ubuntu_16 or is_ubuntu_18