From dcae2a324bbfd6c9764bd4d169ef60cee1898615 Mon Sep 17 00:00:00 2001 From: A Holt Date: Tue, 27 Jul 2021 13:35:36 -0400 Subject: [PATCH 01/27] elgg/defaults/main.yml: Typo in comment --- roles/elgg/defaults/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/elgg/defaults/main.yml b/roles/elgg/defaults/main.yml index 24d621f6f..2bfcb6bd8 100644 --- a/roles/elgg/defaults/main.yml +++ b/roles/elgg/defaults/main.yml @@ -21,7 +21,7 @@ dbname: elggdb dbhost: localhost dbprefix: elgg_ -# The following variables must be in sync with template/elggdb.sql.j2 +# The following variables must be in sync with templates/elggdb.sql.j2 # If you change them, you will probably have to rebuild the database. # They can be changed from the administrative interface once Elgg is installed. From 6e023fa50047530623790e41eec1b945729e2381 Mon Sep 17 00:00:00 2001 From: A Holt Date: Tue, 27 Jul 2021 13:39:42 -0400 Subject: [PATCH 02/27] munin/tasks/install.yml: Clean up comments --- roles/munin/tasks/install.yml | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/roles/munin/tasks/install.yml b/roles/munin/tasks/install.yml index c04aa97b4..0e7af8fe4 100644 --- a/roles/munin/tasks/install.yml +++ b/roles/munin/tasks/install.yml @@ -1,4 +1,4 @@ -- name: "Install 5 packages: munin, munin-node, munin-plugins-extra, libcgi-fast-perl" +- name: "Install 4 packages: munin, munin-node, munin-plugins-extra, libcgi-fast-perl" package: name: - munin @@ -8,14 +8,6 @@ #- libapache2-mod-fcgid state: present -# - name: "Install 2 packages: munin, munin-node (OS's other than debuntu)" -# package: -# name: -# - munin -# - munin-node -# state: present -# when: not is_debuntu - - name: Establish username/password Admin/changeme in /etc/munin/munin-htpasswd htpasswd: path: /etc/munin/munin-htpasswd From e777aa267770d01b28dc2ee7dda9d43e352b0a52 Mon Sep 17 00:00:00 2001 From: A Holt Date: Tue, 27 Jul 2021 13:43:39 -0400 Subject: [PATCH 03/27] 2-common/tasks/packages.yml: debuntu/redhat legacy/comments --- roles/2-common/tasks/packages.yml | 34 +++++++++++++++---------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/roles/2-common/tasks/packages.yml b/roles/2-common/tasks/packages.yml index a844e6c0b..4f4ed6730 100644 --- a/roles/2-common/tasks/packages.yml +++ b/roles/2-common/tasks/packages.yml @@ -1,20 +1,20 @@ -- name: "Install 10 yum/dnf packages: avahi, avahi-tools, createrepo, linux-firmware, nss-mdns, openssl, syslog, wpa_supplicant, xml-common, yum-utils (redhat)" - package: - name: - - avahi - - avahi-tools - - createrepo - - linux-firmware - - nss-mdns - - openssl # FC 18 does not supply, but pear requires - - syslog - - wpa_supplicant - - xml-common - - yum-utils - state: present - when: is_redhat +#- name: "Install 10 yum/dnf packages: avahi, avahi-tools, createrepo, linux-firmware, nss-mdns, openssl, syslog, wpa_supplicant, xml-common, yum-utils (redhat)" +# package: +# name: +# - avahi +# - avahi-tools +# - createrepo +# - linux-firmware +# - nss-mdns +# - openssl # FC 18 does not supply, but pear requires +# - syslog +# - wpa_supplicant +# - xml-common +# - yum-utils +# state: present +# when: is_redhat -- name: "Install 6 deb/apt packages: avahi-daemon, exfat-fuse, exfat-utils, inetutils-syslogd, libnss-mdns, wpasupplicant (debuntu)" +- name: "Install 6 deb/apt packages: avahi-daemon, exfat-fuse, exfat-utils, inetutils-syslogd, libnss-mdns, wpasupplicant" package: name: #- avahi-discover @@ -25,7 +25,7 @@ - libnss-mdns # Provides name resolution via mDNS (Multicast DNS) using Zeroconf/Bonjour e.g. Avahi - wpasupplicant state: present - when: is_debuntu + #when: is_debuntu - name: "Install 18 common packages: acpid, bzip2, curl, gawk, htop, i2c-tools, logrotate, mlocate, net-tools, ntfs-3g, pandoc, pastebinit, rsync, sqlite3, tar, unzip, usbutils, wget" package: From d2a0229cd306a116cceea17940d98598992ae0cd Mon Sep 17 00:00:00 2001 From: A Holt Date: Tue, 27 Jul 2021 13:47:26 -0400 Subject: [PATCH 04/27] gitea/tasks/install.yml: Clean comments --- roles/gitea/tasks/install.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/roles/gitea/tasks/install.yml b/roles/gitea/tasks/install.yml index e5bfc9b1e..fb0c5966a 100644 --- a/roles/gitea/tasks/install.yml +++ b/roles/gitea/tasks/install.yml @@ -6,12 +6,12 @@ state: stopped ignore_errors: yes -- name: Ensure group gitea exists +- name: Ensure group 'gitea' exists group: name: gitea state: present -- name: Create user gitea +- name: Create user 'gitea' user: name: gitea comment: Gitea daemon account @@ -26,7 +26,7 @@ group: gitea with_items: "{{ gitea_subdirectories }}" -- name: Make directories data, indexers, and log writable +- name: Make directories data, indexers, and log writable (0750) file: path: "{{ gitea_root_directory }}/{{ item }}" # /library/gitea mode: '0750' @@ -98,7 +98,7 @@ # 4. Create systemd service & prepare NGINX for http://box/gitea -- name: "Install from template: /etc/systemd/system/gitea.service" +- name: "Install from template: /etc/systemd/system/gitea.service (by default 0644)" template: src: gitea.service.j2 dest: /etc/systemd/system/gitea.service From 9da6a7be72d10d0d7f00982f3012485e0c55150f Mon Sep 17 00:00:00 2001 From: A Holt Date: Tue, 27 Jul 2021 13:50:35 -0400 Subject: [PATCH 05/27] jupyterhub/tasks/install.yml: Clean comments --- roles/jupyterhub/tasks/install.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/roles/jupyterhub/tasks/install.yml b/roles/jupyterhub/tasks/install.yml index 948c5f453..f33d05191 100644 --- a/roles/jupyterhub/tasks/install.yml +++ b/roles/jupyterhub/tasks/install.yml @@ -13,22 +13,22 @@ when: nodejs_installed is undefined -- name: Make the directories to hold JupyterHub config +- name: Make 3 directories to hold JupyterHub config file: state: directory path: "{{ item }}" with_items: - - "{{ jupyterhub_venv }}/etc/jupyter" + - "{{ jupyterhub_venv }}/etc/jupyter" # /opt/iiab/jupyterhub - "{{ jupyterhub_venv }}/etc/jupyterhub" - "{{ jupyterhub_venv }}/etc/systemd" -- name: Use npm to install configurable-http-proxy +- name: Use npm to install 'configurable-http-proxy' npm: name: configurable-http-proxy global: yes state: latest -- name: "Use pip to install into a virtual environment: {{ jupyterhub_venv }} (~229 MB)" +- name: "pip install 7 packages into virtual environment: {{ jupyterhub_venv }} (~229 MB)" pip: name: - pip From 4cfb1b4b0c57cd34390abe6b34588a554684ea9d Mon Sep 17 00:00:00 2001 From: A Holt Date: Tue, 27 Jul 2021 13:52:33 -0400 Subject: [PATCH 06/27] moodle/tasks/install.yml: Clean comment --- roles/moodle/tasks/install.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/moodle/tasks/install.yml b/roles/moodle/tasks/install.yml index 66dd5cb74..8e4f7c584 100644 --- a/roles/moodle/tasks/install.yml +++ b/roles/moodle/tasks/install.yml @@ -106,7 +106,7 @@ dest: "{{ moodle_base }}" mode: 0755 -- name: Execute {{ moodle_base }}/moodle_installer IF {{ moodle_base }}/config.php doesn't yet exist -- REQUIRES 'max_input_vars = 5000' (or higher) in /etc/php/{{ php_version }}/cli/php.ini with PHP 8+ (as set up by www_options/tasks/main.yml) -- WHEREAS LATER Moodle uses /etc/php/{{ php_version }}/fpm/php.ini during regular operation +- name: Execute {{ moodle_base }}/moodle_installer IF {{ moodle_base }}/config.php doesn't yet exist -- REQUIRES 'max_input_vars = 5000' (or higher) in /etc/php/{{ php_version }}/cli/php.ini IF PHP 8+ (as set up by www_options/tasks/main.yml) -- WHEREAS LATER Moodle uses /etc/php/{{ php_version }}/fpm/php.ini during regular operation shell: "{{ moodle_base }}/moodle_installer" args: creates: "{{ moodle_base }}/config.php" From 5f98d3781ac7bfd12149b9fa0d5541ba9484f9fc Mon Sep 17 00:00:00 2001 From: A Holt Date: Tue, 27 Jul 2021 13:55:20 -0400 Subject: [PATCH 07/27] nodejs/tasks/install.yml: debuntu/redhat legacy/comments --- roles/nodejs/tasks/install.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/roles/nodejs/tasks/install.yml b/roles/nodejs/tasks/install.yml index ba3536c96..33039d899 100644 --- a/roles/nodejs/tasks/install.yml +++ b/roles/nodejs/tasks/install.yml @@ -65,12 +65,12 @@ # state: absent # when: internet_available and is_debuntu -- name: Set up Node.js {{ nodejs_version }} apt sources (debuntu) +- name: Set up Node.js {{ nodejs_version }} apt sources shell: curl -sL https://deb.nodesource.com/setup_{{ nodejs_version }} | bash - args: warn: no creates: /etc/apt/sources.list.d/nodesource.list - when: internet_available and is_debuntu + when: internet_available #when: internet_available and (is_debian_8 or is_debian_9 or is_ubuntu_16 or is_ubuntu_17) # NOT NEC TO TEST FOR is_raspbian_8 OR is_raspbian_9 AS /opt/iiab/iiab/vars/.yml # DEFINES THESE AS SUBSETS OF is_debian_8 OR is_debian_9 (FOR NOW!) @@ -80,20 +80,20 @@ # "npm install -g npm@latest" (all *SHOULD* be magically fixed by 2019-04-18 ?) # Forces update -- name: Install latest Node.js {{ nodejs_version }} which includes /usr/bin/npm (debuntu) +- name: Install latest Node.js {{ nodejs_version }} which includes /usr/bin/npm package: #name: nodejs={{ nodejs_version }} name: nodejs state: latest #state: present - when: internet_available and is_debuntu + when: internet_available #when: internet_available and (is_debian_8 or is_debian_9 or is_ubuntu_16 or is_ubuntu_17) -- name: Set up & install Node.js {{ nodejs_version }} which includes /usr/bin/npm (redhat) - shell: curl -sL https://rpm.nodesource.com/setup_{{ nodejs_version }} | bash - - args: - warn: no - when: internet_available and is_redhat +# - name: Set up & install Node.js {{ nodejs_version }} which includes /usr/bin/npm (redhat) +# shell: curl -sL https://rpm.nodesource.com/setup_{{ nodejs_version }} | bash - +# args: +# warn: no +# when: internet_available and is_redhat # 2018-07-14: BOTH STEPS ABOVE TAKE TIME, but Raspbian (apt offers npm From 9387fe9f3c5093f2f7c84706eefbf225a2ce8502 Mon Sep 17 00:00:00 2001 From: A Holt Date: Tue, 27 Jul 2021 14:00:37 -0400 Subject: [PATCH 08/27] postgresql/tasks/install.yml: debuntu/redhat, cleanup & comments (tested in PR #2850) --- roles/postgresql/tasks/install.yml | 55 ++++++++++++------------------ 1 file changed, 21 insertions(+), 34 deletions(-) diff --git a/roles/postgresql/tasks/install.yml b/roles/postgresql/tasks/install.yml index fc78589af..bc180c234 100644 --- a/roles/postgresql/tasks/install.yml +++ b/roles/postgresql/tasks/install.yml @@ -1,21 +1,11 @@ -- name: Install 'postgresql' package +- name: 'Install packages: postgresql, postgresql-client' package: - name: postgresql + name: + - postgresql + - postgresql-client state: present -- name: Install 'postgresql-client' package (debuntu) - package: - name: postgresql-client - state: present - when: is_debuntu - -- name: Install 'postgresql-server' package (OS's other than debuntu) - package: - name: postgresql-server - state: present - when: not is_debuntu - -- name: Install /etc/systemd/system/postgresql-iiab.service from template +- name: Install /etc/systemd/system/postgresql-iiab.service from template (0644 by default) template: src: postgresql-iiab.service dest: /etc/systemd/system/postgresql-iiab.service @@ -23,50 +13,47 @@ # group: root # mode: '0644' -- name: Create PostgreSQL data dir /library/pgsql-iiab, owned by postgres:postgres +- name: Create PostgreSQL data dir /library/pgsql-iiab, owned by postgres:postgres (0700) file: + state: directory path: /library/pgsql-iiab owner: postgres group: postgres - mode: '0700' - state: directory + mode: 0700 -- name: Make sure locale {{ postgresql_locale }} is enabled (debuntu) # en_US.UTF-8 +- name: Make sure locale {{ postgresql_locale }} is enabled # en_US.UTF-8 lineinfile: dest: /etc/locale.gen line: "{{ postgresql_locale }} UTF-8" - when: is_debuntu -- name: Generate locales (debuntu) +- name: Generate locales command: /usr/sbin/locale-gen - when: is_debuntu -- name: Initialize the PostgreSQL db, creating /library/pgsql-iiab/pg_hba.conf (debuntu) +- name: Initialize the PostgreSQL db, creating /library/pgsql-iiab/pg_hba.conf #command: su - postgres -c "/usr/lib/postgresql/{{ postgresql_version }}/bin/initdb -E 'UTF-8' --locale={{ postgresql_locale }} -D /library/pgsql-iiab" command: /usr/lib/postgresql/{{ postgresql_version }}/bin/initdb -E 'UTF-8' --locale={{ postgresql_locale }} -D /library/pgsql-iiab args: creates: /library/pgsql-iiab/pg_hba.conf become: yes become_user: postgres - when: is_debuntu -- name: Initialize the PostgreSQL db, creating /library/pgsql-iiab/pg_hba.conf (OS's other than debuntu) - #command: su - postgres -c "/usr/bin/initdb -E 'UTF-8' --lc-collate={{ postgresql_locale }} --lc-ctype={{ postgresql_locale }} -D /library/pgsql-iiab" - command: /usr/bin/initdb -E 'UTF-8' --lc-collate={{ postgresql_locale }} --lc-ctype={{ postgresql_locale }} -D /library/pgsql-iiab - args: - creates: /library/pgsql-iiab/pg_hba.conf - become: yes - become_user: postgres - when: not is_debuntu +# - name: Initialize the PostgreSQL db, creating /library/pgsql-iiab/pg_hba.conf (OS's other than debuntu) +# #command: su - postgres -c "/usr/bin/initdb -E 'UTF-8' --lc-collate={{ postgresql_locale }} --lc-ctype={{ postgresql_locale }} -D /library/pgsql-iiab" +# command: /usr/bin/initdb -E 'UTF-8' --lc-collate={{ postgresql_locale }} --lc-ctype={{ postgresql_locale }} -D /library/pgsql-iiab +# args: +# creates: /library/pgsql-iiab/pg_hba.conf +# become: yes +# become_user: postgres +# when: not is_debuntu -- name: Install /library/pgsql-iiab/postgresql.conf owned by postgres:postgres, from template +- name: Install /library/pgsql-iiab/postgresql.conf from template (postgres:postgres, 0640) template: backup: yes src: postgresql.conf.j2 dest: /library/pgsql-iiab/postgresql.conf owner: postgres group: postgres - mode: '0640' + mode: 0640 - name: Disable & Stop stock 'postgresql' (parent) systemd service systemd: From c9994fb1f09a5a2875766d2a86363ee25e94d61f Mon Sep 17 00:00:00 2001 From: A Holt Date: Tue, 27 Jul 2021 14:22:07 -0400 Subject: [PATCH 09/27] Update packages.yml --- roles/2-common/tasks/packages.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/roles/2-common/tasks/packages.yml b/roles/2-common/tasks/packages.yml index 4f4ed6730..3d6afa8d8 100644 --- a/roles/2-common/tasks/packages.yml +++ b/roles/2-common/tasks/packages.yml @@ -14,16 +14,16 @@ # state: present # when: is_redhat -- name: "Install 6 deb/apt packages: avahi-daemon, exfat-fuse, exfat-utils, inetutils-syslogd, libnss-mdns, wpasupplicant" +- name: "Install 4 deb/apt packages: exfat-fuse, exfat-utils, libnss-mdns, wpasupplicant" package: name: - #- avahi-discover - - avahi-daemon - - exfat-fuse # Should no longer be nec with 5.4+ kernels - - exfat-utils # Likewise! - - inetutils-syslogd # Error logging facility - - libnss-mdns # Provides name resolution via mDNS (Multicast DNS) using Zeroconf/Bonjour e.g. Avahi - - wpasupplicant + #- avahi-discover # 2021-07-27: Commented out long ago + #- avahi-daemon # 2021-07-27: Holdover from the XO days and used to advertise ssh/admin-console being available via avahi-daemon + - exfat-fuse # Should no longer be nec with 5.4+ kernels + - exfat-utils # Likewise! + #- inetutils-syslogd # 2021-07-27: Error logging facility -- holdover from the XO days, journalctl has replaced this in newer distros + - libnss-mdns # 2021-07-27: Client-side library -- provides name resolution via mDNS (Multicast DNS) using Zeroconf/Bonjour e.g. Avahi + - wpasupplicant # 2021-07-27: Client library for connections to a WiFi AP state: present #when: is_debuntu From dfd47b530742520188979148f41345d60ee20d88 Mon Sep 17 00:00:00 2001 From: A Holt Date: Tue, 27 Jul 2021 14:29:10 -0400 Subject: [PATCH 10/27] packages.yml: Mention 1-prep/tasks/raspberry_pi.yml & 2-common/tasks/network.yml --- roles/2-common/tasks/packages.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/roles/2-common/tasks/packages.yml b/roles/2-common/tasks/packages.yml index 3d6afa8d8..61eea1339 100644 --- a/roles/2-common/tasks/packages.yml +++ b/roles/2-common/tasks/packages.yml @@ -25,7 +25,12 @@ - libnss-mdns # 2021-07-27: Client-side library -- provides name resolution via mDNS (Multicast DNS) using Zeroconf/Bonjour e.g. Avahi - wpasupplicant # 2021-07-27: Client library for connections to a WiFi AP state: present - #when: is_debuntu + +# 2021-07-27: SEE ALSO 3 networking packages installed by +# https://github.com/iiab/iiab/blob/master/roles/1-prep/tasks/raspberry_pi.yml + +# 2021-07-27: SEE ALSO 4 networking packages installed by +# https://github.com/iiab/iiab/blob/master/roles/2-common/tasks/network.yml - name: "Install 18 common packages: acpid, bzip2, curl, gawk, htop, i2c-tools, logrotate, mlocate, net-tools, ntfs-3g, pandoc, pastebinit, rsync, sqlite3, tar, unzip, usbutils, wget" package: From f12ad5ce1cc3eba9e6056d7fb20d66342a3af7a7 Mon Sep 17 00:00:00 2001 From: A Holt Date: Tue, 27 Jul 2021 14:37:12 -0400 Subject: [PATCH 11/27] Update packages.yml --- 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 61eea1339..46e9a70f6 100644 --- a/roles/2-common/tasks/packages.yml +++ b/roles/2-common/tasks/packages.yml @@ -26,10 +26,10 @@ - wpasupplicant # 2021-07-27: Client library for connections to a WiFi AP state: present -# 2021-07-27: SEE ALSO 3 networking packages installed by +# 2021-07-27: SEE ALSO ~3 networking packages earlier installed by # https://github.com/iiab/iiab/blob/master/roles/1-prep/tasks/raspberry_pi.yml -# 2021-07-27: SEE ALSO 4 networking packages installed by +# 2021-07-27: SEE ALSO ~4 networking packages later installed by # https://github.com/iiab/iiab/blob/master/roles/2-common/tasks/network.yml - name: "Install 18 common packages: acpid, bzip2, curl, gawk, htop, i2c-tools, logrotate, mlocate, net-tools, ntfs-3g, pandoc, pastebinit, rsync, sqlite3, tar, unzip, usbutils, wget" From 231fba682868d6176026b6c9b7d3b7fe24cfe6a6 Mon Sep 17 00:00:00 2001 From: A Holt Date: Tue, 27 Jul 2021 14:46:10 -0400 Subject: [PATCH 12/27] Update packages.yml --- roles/2-common/tasks/packages.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/roles/2-common/tasks/packages.yml b/roles/2-common/tasks/packages.yml index 46e9a70f6..0bc85f243 100644 --- a/roles/2-common/tasks/packages.yml +++ b/roles/2-common/tasks/packages.yml @@ -26,11 +26,11 @@ - wpasupplicant # 2021-07-27: Client library for connections to a WiFi AP state: present -# 2021-07-27: SEE ALSO ~3 networking packages earlier installed by -# https://github.com/iiab/iiab/blob/master/roles/1-prep/tasks/raspberry_pi.yml +- name: '2021-07-27: SEE ALSO ~3 networking packages earlier installed by https://github.com/iiab/iiab/blob/master/roles/1-prep/tasks/raspberry_pi.yml' + meta: noop -# 2021-07-27: SEE ALSO ~4 networking packages later installed by -# https://github.com/iiab/iiab/blob/master/roles/2-common/tasks/network.yml +- name: '2021-07-27: SEE ALSO ~4 networking packages later installed by https://github.com/iiab/iiab/blob/master/roles/2-common/tasks/network.yml' + meta: noop - name: "Install 18 common packages: acpid, bzip2, curl, gawk, htop, i2c-tools, logrotate, mlocate, net-tools, ntfs-3g, pandoc, pastebinit, rsync, sqlite3, tar, unzip, usbutils, wget" package: From 63b17f2c8387ba3bb4792c5901bd5d7cd83516d0 Mon Sep 17 00:00:00 2001 From: A Holt Date: Tue, 27 Jul 2021 14:51:03 -0400 Subject: [PATCH 13/27] Update packages.yml --- roles/2-common/tasks/packages.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/roles/2-common/tasks/packages.yml b/roles/2-common/tasks/packages.yml index 0bc85f243..a23e257f7 100644 --- a/roles/2-common/tasks/packages.yml +++ b/roles/2-common/tasks/packages.yml @@ -14,6 +14,12 @@ # state: present # when: is_redhat +- name: '2021-07-27: SEE ALSO ~3 networking packages EARLIER installed by https://github.com/iiab/iiab/blob/master/roles/1-prep/tasks/raspberry_pi.yml' + meta: noop + +- name: '2021-07-27: SEE ALSO 4-5 networking packages LATER installed by https://github.com/iiab/iiab/blob/master/roles/2-common/tasks/network.yml' + meta: noop + - name: "Install 4 deb/apt packages: exfat-fuse, exfat-utils, libnss-mdns, wpasupplicant" package: name: @@ -26,12 +32,6 @@ - wpasupplicant # 2021-07-27: Client library for connections to a WiFi AP state: present -- name: '2021-07-27: SEE ALSO ~3 networking packages earlier installed by https://github.com/iiab/iiab/blob/master/roles/1-prep/tasks/raspberry_pi.yml' - meta: noop - -- name: '2021-07-27: SEE ALSO ~4 networking packages later installed by https://github.com/iiab/iiab/blob/master/roles/2-common/tasks/network.yml' - meta: noop - - name: "Install 18 common packages: acpid, bzip2, curl, gawk, htop, i2c-tools, logrotate, mlocate, net-tools, ntfs-3g, pandoc, pastebinit, rsync, sqlite3, tar, unzip, usbutils, wget" package: name: From cce544c86853cc0481e08e95cac5a3cd0f44ee1a Mon Sep 17 00:00:00 2001 From: A Holt Date: Tue, 27 Jul 2021 14:54:20 -0400 Subject: [PATCH 14/27] Update raspberry_pi.yml --- roles/1-prep/tasks/raspberry_pi.yml | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/roles/1-prep/tasks/raspberry_pi.yml b/roles/1-prep/tasks/raspberry_pi.yml index 3c9ed54ad..211cd483b 100644 --- a/roles/1-prep/tasks/raspberry_pi.yml +++ b/roles/1-prep/tasks/raspberry_pi.yml @@ -31,15 +31,21 @@ # line: 'include btcfg.txt' # when: is_ubuntu -- name: 'Ensure packages are installed: dphys-swapfile, fake-hwclock, iw, rfkill, wireless-tools' +- name: '2021-07-27: SEE ALSO ~3 networking packages LATER installed by https://github.com/iiab/iiab/blob/master/roles/2-common/tasks/packages.yml' + meta: noop + +- name: '2021-07-27: SEE ALSO 4-5 networking packages LATER installed by https://github.com/iiab/iiab/blob/master/roles/2-common/tasks/network.yml' + meta: noop + +- name: 'Install packages: cloud-guest-utils, dphys-swapfile, fake-hwclock, iw, rfkill, wireless-tools' package: name: - - dphys-swapfile - - fake-hwclock - - iw - - rfkill - - wireless-tools - - cloud-guest-utils + - cloud-guest-utils # Contains 'growpart' for resizing a partition during boot, which is normally done with the aid of cloud-init + - dphys-swapfile # Autogenerate and use a swap file + - fake-hwclock # Save/restore system clock on machines without working RTC hardware + - iw # Configuring Linux wireless devices + - rfkill # Enabling & disabling wireless devices + - wireless-tools # Manipulating Linux Wireless Extensions state: present - name: Increase swap file size (to CONF_SWAPSIZE={{ pi_swap_file_size }} in /etc/dphys-swapfile) as kalite pip download fails From ed9383d394357692c992b71d91b1ef28a423dc5e Mon Sep 17 00:00:00 2001 From: A Holt Date: Tue, 27 Jul 2021 14:56:20 -0400 Subject: [PATCH 15/27] 2-common/tasks/network.yml: Cleanup & network packages context --- roles/2-common/tasks/network.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/roles/2-common/tasks/network.yml b/roles/2-common/tasks/network.yml index dc71f4a13..9765f4b1a 100644 --- a/roles/2-common/tasks/network.yml +++ b/roles/2-common/tasks/network.yml @@ -1,11 +1,16 @@ +- name: '2021-07-27: SEE ALSO ~3 networking packages EARLIER installed by https://github.com/iiab/iiab/blob/master/roles/1-prep/tasks/raspberry_pi.yml' + meta: noop + +- name: '2021-07-27: SEE ALSO ~3 networking packages EARLIER installed by https://github.com/iiab/iiab/blob/master/roles/2-common/tasks/packages.yml' + meta: noop + - name: Install package networkd-dispatcher (OS's other than RaspiOS) package: name: networkd-dispatcher state: present when: not is_raspbian -# used in the network role -- name: 'Install network packages: hostapd, iproute2, iptables-persistent, netmask (debuntu)' +- name: 'Install network packages: hostapd, iproute2, iptables-persistent, netmask (debuntu) -- later used by https://github.com/iiab/iiab/tree/master/roles/network' package: name: - iproute2 @@ -13,11 +18,9 @@ - hostapd - netmask state: present - when: is_debuntu - name: Install /etc/network/if-pre-up.d/iptables from template (0755, debuntu) template: src: iptables dest: /etc/network/if-pre-up.d/iptables mode: '0755' - when: is_debuntu From fa21a43c4d8a1811fa7f41fb4349c2e5c743a810 Mon Sep 17 00:00:00 2001 From: A Holt Date: Tue, 27 Jul 2021 14:58:09 -0400 Subject: [PATCH 16/27] Update raspberry_pi.yml --- roles/1-prep/tasks/raspberry_pi.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/1-prep/tasks/raspberry_pi.yml b/roles/1-prep/tasks/raspberry_pi.yml index 211cd483b..02f0f54c6 100644 --- a/roles/1-prep/tasks/raspberry_pi.yml +++ b/roles/1-prep/tasks/raspberry_pi.yml @@ -22,7 +22,7 @@ path: /boot/firmware/usercfg.txt line: "dtoverlay=i2c-rtc,{{ rtc_id }}=on" state: present - when: rtc_id is defined and rtc_id != "none" and is_ubuntu + when: rtc_id is defined and rtc_id != "none" and is_ubuntu # CLARIF: Ubuntu runs increasingly well on RPi hardware, staring in 2020 especially #- name: Enable bluetooth in /boot/firmware/syscfg.txt on Ubuntu (needs reboot) # lineinfile: From 3a78ab676da5e9a3648f49315c88bfa656c87f85 Mon Sep 17 00:00:00 2001 From: A Holt Date: Tue, 27 Jul 2021 15:30:38 -0400 Subject: [PATCH 17/27] Update raspberry_pi.yml --- roles/1-prep/tasks/raspberry_pi.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/1-prep/tasks/raspberry_pi.yml b/roles/1-prep/tasks/raspberry_pi.yml index 02f0f54c6..d1399b767 100644 --- a/roles/1-prep/tasks/raspberry_pi.yml +++ b/roles/1-prep/tasks/raspberry_pi.yml @@ -22,7 +22,7 @@ path: /boot/firmware/usercfg.txt line: "dtoverlay=i2c-rtc,{{ rtc_id }}=on" state: present - when: rtc_id is defined and rtc_id != "none" and is_ubuntu # CLARIF: Ubuntu runs increasingly well on RPi hardware, staring in 2020 especially + when: rtc_id is defined and rtc_id != "none" and is_ubuntu # CLARIF: Ubuntu runs increasingly well on RPi hardware, starting in 2020 especially #- name: Enable bluetooth in /boot/firmware/syscfg.txt on Ubuntu (needs reboot) # lineinfile: From 4b3cfdbd5d2aacb584f440f6e2ce3420f23fec48 Mon Sep 17 00:00:00 2001 From: A Holt Date: Tue, 27 Jul 2021 17:12:51 -0400 Subject: [PATCH 18/27] Update packages.yml --- roles/2-common/tasks/packages.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/roles/2-common/tasks/packages.yml b/roles/2-common/tasks/packages.yml index a23e257f7..13e6f0add 100644 --- a/roles/2-common/tasks/packages.yml +++ b/roles/2-common/tasks/packages.yml @@ -20,16 +20,16 @@ - name: '2021-07-27: SEE ALSO 4-5 networking packages LATER installed by https://github.com/iiab/iiab/blob/master/roles/2-common/tasks/network.yml' meta: noop -- name: "Install 4 deb/apt packages: exfat-fuse, exfat-utils, libnss-mdns, wpasupplicant" +- name: "Install 5 deb/apt packages: exfat-fuse, exfat-utils, libnss-mdns, wpasupplicant" package: name: #- avahi-discover # 2021-07-27: Commented out long ago - #- avahi-daemon # 2021-07-27: Holdover from the XO days and used to advertise ssh/admin-console being available via avahi-daemon + - avahi-daemon # 2021-07-27: RaspiOS (and package libnss-mnds, below) install this regardless -- holdover from the XO days and used to advertise ssh/admin-console being available via avahi-daemon - exfat-fuse # Should no longer be nec with 5.4+ kernels - exfat-utils # Likewise! #- inetutils-syslogd # 2021-07-27: Error logging facility -- holdover from the XO days, journalctl has replaced this in newer distros - - libnss-mdns # 2021-07-27: Client-side library -- provides name resolution via mDNS (Multicast DNS) using Zeroconf/Bonjour e.g. Avahi - - wpasupplicant # 2021-07-27: Client library for connections to a WiFi AP + - libnss-mdns # 2021-07-27: RaspiOS (and package avahi-daemon, above) install this regardless -- client-side library -- provides name resolution via mDNS (Multicast DNS) using Zeroconf/Bonjour e.g. Avahi + - wpasupplicant # 2021-07-27: RaspiOS installs this regardless -- client library for connections to a WiFi AP state: present - name: "Install 18 common packages: acpid, bzip2, curl, gawk, htop, i2c-tools, logrotate, mlocate, net-tools, ntfs-3g, pandoc, pastebinit, rsync, sqlite3, tar, unzip, usbutils, wget" From ed03cb1769bef16cbf609b3a0fc1968fdd4377d5 Mon Sep 17 00:00:00 2001 From: A Holt Date: Tue, 27 Jul 2021 17:24:11 -0400 Subject: [PATCH 19/27] Update packages.yml --- roles/2-common/tasks/packages.yml | 53 ++++++++++++++----------------- 1 file changed, 24 insertions(+), 29 deletions(-) diff --git a/roles/2-common/tasks/packages.yml b/roles/2-common/tasks/packages.yml index 13e6f0add..1c2c0773d 100644 --- a/roles/2-common/tasks/packages.yml +++ b/roles/2-common/tasks/packages.yml @@ -20,45 +20,40 @@ - name: '2021-07-27: SEE ALSO 4-5 networking packages LATER installed by https://github.com/iiab/iiab/blob/master/roles/2-common/tasks/network.yml' meta: noop -- name: "Install 5 deb/apt packages: exfat-fuse, exfat-utils, libnss-mdns, wpasupplicant" +- name: "Install 21 common packages: acpid, avahi-daemon, bzip2, curl, gawk, htop, i2c-tools, libnss-mdns, logrotate, mlocate, net-tools, ntfs-3g, pandoc, pastebinit, rsync, sqlite3, tar, unzip, usbutils, wget, wpasupplicant" package: name: - #- avahi-discover # 2021-07-27: Commented out long ago - - avahi-daemon # 2021-07-27: RaspiOS (and package libnss-mnds, below) install this regardless -- holdover from the XO days and used to advertise ssh/admin-console being available via avahi-daemon - - exfat-fuse # Should no longer be nec with 5.4+ kernels - - exfat-utils # Likewise! - #- inetutils-syslogd # 2021-07-27: Error logging facility -- holdover from the XO days, journalctl has replaced this in newer distros - - libnss-mdns # 2021-07-27: RaspiOS (and package avahi-daemon, above) install this regardless -- client-side library -- provides name resolution via mDNS (Multicast DNS) using Zeroconf/Bonjour e.g. Avahi - - wpasupplicant # 2021-07-27: RaspiOS installs this regardless -- client library for connections to a WiFi AP - state: present - -- name: "Install 18 common packages: acpid, bzip2, curl, gawk, htop, i2c-tools, logrotate, mlocate, net-tools, ntfs-3g, pandoc, pastebinit, rsync, sqlite3, tar, unzip, usbutils, wget" - package: - name: - - acpid # Daemon for ACPI (power mgmt) events - - bzip2 # 2021-04-26: Prob not used, but can't hurt? - - curl # Used to install roles/nodejs and roles/nodered - #- etckeeper # "nobody is really using etckeeper and it's bloating the filesystem every time apt runs" per @jvonau at https://github.com/iiab/iiab/issues/1146 + - acpid # Daemon for ACPI (power mgmt) events + #- avahi-discover # 2021-07-27: Commented out long ago + - avahi-daemon # 2021-07-27: RaspiOS (and package libnss-mnds, below) install this regardless -- holdover from the XO days and used to advertise ssh/admin-console being available via avahi-daemon + - bzip2 # 2021-04-26: Prob not used, but can't hurt? + - curl # Used to install roles/nodejs and roles/nodered + #- etckeeper # "nobody is really using etckeeper and it's bloating the filesystem every time apt runs" per @jvonau at https://github.com/iiab/iiab/issues/1146 + #- exfat-fuse # 2021-07-27: Should no longer be nec with 5.4+ kernels, so let's try commenting it out + #- exfat-utils # Ditto! - gawk - htop - - i2c-tools # Low-level bus/chip/register/EEPROM tools e.g. for RTC - #- iproute2 # Installed by roles/2-common/tasks/network.yml + - i2c-tools # Low-level bus/chip/register/EEPROM tools e.g. for RTC + #- inetutils-syslogd # 2021-07-27: Error logging facility -- holdover from the XO days, journalctl has replaced this in newer distros + #- iproute2 # Installed by roles/2-common/tasks/network.yml - logrotate - #- lynx # Installed by 1-prep's roles/iiab-admin/tasks/access.yml - #- make # 2021-07-27: Currently used by roles/pbx and no other roles + - libnss-mdns # 2021-07-27: RaspiOS (and package avahi-daemon, above) install this regardless -- client-side library -- provides name resolution via mDNS (Multicast DNS) using Zeroconf/Bonjour e.g. Avahi + #- lynx # Installed by 1-prep's roles/iiab-admin/tasks/access.yml + #- make # 2021-07-27: Currently used by roles/pbx and no other roles - mlocate - - net-tools # 2021-04-26: @jvonau suggests possibly deleting this...unless oldtimers really want these older commands in iiab-diagnostics output? - - ntfs-3g # Possibly no longer nec, similar to exfat packages above? + - net-tools # 2021-04-26: @jvonau suggests possibly deleting this...unless oldtimers really want these older commands in iiab-diagnostics output? + - ntfs-3g # Possibly no longer nec, similar to exfat packages above? #- openssh-server # ssh (Raspbian) or openssh-server (other OS's) already installed by 1-prep's roles/sshd/tasks/main.yml - - pandoc # For /usr/bin/iiab-refresh-wiki-docs - - pastebinit # For /usr/bin/iiab-diagnostics + - pandoc # For /usr/bin/iiab-refresh-wiki-docs + - pastebinit # For /usr/bin/iiab-diagnostics - rsync - #- screen # Installed by 1-prep's roles/iiab-admin/tasks/access.yml + #- screen # Installed by 1-prep's roles/iiab-admin/tasks/access.yml - sqlite3 - #- sudo # Installed by 1-prep's roles/iiab-admin/tasks/sudo-prereqs.yml + #- sudo # Installed by 1-prep's roles/iiab-admin/tasks/sudo-prereqs.yml - tar - unzip - #- usbmount # Moved to roles/usb_lib/tasks/install.yml - - usbutils # 2021-04-26: Also move to roles/usb_lib/tasks/install.yml ? + #- usbmount # Moved to roles/usb_lib/tasks/install.yml + - usbutils # 2021-07-27: RaspiOS installs this regardless -- move to roles/usb_lib/tasks/install.yml ? - wget + - wpasupplicant # 2021-07-27: RaspiOS installs this regardless -- client library for connections to a WiFi AP state: present From 8bdeef38b73c787afb819f9533f21d6284c54835 Mon Sep 17 00:00:00 2001 From: A Holt Date: Tue, 27 Jul 2021 17:28:21 -0400 Subject: [PATCH 20/27] Update raspberry_pi.yml --- roles/1-prep/tasks/raspberry_pi.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/roles/1-prep/tasks/raspberry_pi.yml b/roles/1-prep/tasks/raspberry_pi.yml index d1399b767..163fa9299 100644 --- a/roles/1-prep/tasks/raspberry_pi.yml +++ b/roles/1-prep/tasks/raspberry_pi.yml @@ -41,11 +41,11 @@ package: name: - cloud-guest-utils # Contains 'growpart' for resizing a partition during boot, which is normally done with the aid of cloud-init - - dphys-swapfile # Autogenerate and use a swap file - - fake-hwclock # Save/restore system clock on machines without working RTC hardware - - iw # Configuring Linux wireless devices - - rfkill # Enabling & disabling wireless devices - - wireless-tools # Manipulating Linux Wireless Extensions + - dphys-swapfile # 2021-07-27: RaspiOS installs this regardless -- autogenerate and use a swap file + - fake-hwclock # 2021-07-27: RaspiOS installs this regardless -- save/restore system clock on machines without working RTC hardware + - iw # 2021-07-27: RaspiOS installs this regardless -- configure Linux wireless devices + - rfkill # 2021-07-27: RaspiOS installs this regardless -- enable & disable wireless devices + - wireless-tools # 2021-07-27: RaspiOS installs this regardless -- manipulate Linux Wireless Extensions state: present - name: Increase swap file size (to CONF_SWAPSIZE={{ pi_swap_file_size }} in /etc/dphys-swapfile) as kalite pip download fails From 19c96924a0b67ef23cfc34c5177425b2732154c2 Mon Sep 17 00:00:00 2001 From: A Holt Date: Tue, 27 Jul 2021 17:47:52 -0400 Subject: [PATCH 21/27] Update raspberry_pi.yml --- roles/1-prep/tasks/raspberry_pi.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/roles/1-prep/tasks/raspberry_pi.yml b/roles/1-prep/tasks/raspberry_pi.yml index 163fa9299..232674dca 100644 --- a/roles/1-prep/tasks/raspberry_pi.yml +++ b/roles/1-prep/tasks/raspberry_pi.yml @@ -31,19 +31,26 @@ # line: 'include btcfg.txt' # when: is_ubuntu -- name: '2021-07-27: SEE ALSO ~3 networking packages LATER installed by https://github.com/iiab/iiab/blob/master/roles/2-common/tasks/packages.yml' +- name: '2021-07-27: SEE ALSO ~4 networking packages LATER installed by https://github.com/iiab/iiab/blob/master/roles/2-common/tasks/packages.yml' meta: noop - name: '2021-07-27: SEE ALSO 4-5 networking packages LATER installed by https://github.com/iiab/iiab/blob/master/roles/2-common/tasks/network.yml' meta: noop +# 2021-07-27 explanation from @jvonau: The 3 BELOW (iw, rfkill, wireless-tools) +# are provided by RaspiOS. Ubuntu|Debian on the other hand are hit or miss: +# desktops might have some/all 3 preinstalled, while servers tend not to have +# these present at all, but are needed to be installed if you want to take full +# advantage of WiFi on Ubuntu and friends -- but it's only enforced on RPi +# hardware where we know in advance of the likelihood of WiFi being present. + - name: 'Install packages: cloud-guest-utils, dphys-swapfile, fake-hwclock, iw, rfkill, wireless-tools' package: name: - cloud-guest-utils # Contains 'growpart' for resizing a partition during boot, which is normally done with the aid of cloud-init - dphys-swapfile # 2021-07-27: RaspiOS installs this regardless -- autogenerate and use a swap file - fake-hwclock # 2021-07-27: RaspiOS installs this regardless -- save/restore system clock on machines without working RTC hardware - - iw # 2021-07-27: RaspiOS installs this regardless -- configure Linux wireless devices + - iw # 2021-07-27: RaspiOS installs this regardless -- configure Linux wireless devices -- hard dependence for ap0 creation, SEE https://github.com/iiab/iiab/blob/master/roles/network/templates/hostapd/clone-wifi.service.j2 - rfkill # 2021-07-27: RaspiOS installs this regardless -- enable & disable wireless devices - wireless-tools # 2021-07-27: RaspiOS installs this regardless -- manipulate Linux Wireless Extensions state: present From 0e4047adcbbbd82d42ec6c954a3a31955650e6f5 Mon Sep 17 00:00:00 2001 From: A Holt Date: Tue, 27 Jul 2021 17:52:53 -0400 Subject: [PATCH 22/27] Update network.yml --- roles/2-common/tasks/network.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/roles/2-common/tasks/network.yml b/roles/2-common/tasks/network.yml index 9765f4b1a..cc1615a58 100644 --- a/roles/2-common/tasks/network.yml +++ b/roles/2-common/tasks/network.yml @@ -1,22 +1,22 @@ - name: '2021-07-27: SEE ALSO ~3 networking packages EARLIER installed by https://github.com/iiab/iiab/blob/master/roles/1-prep/tasks/raspberry_pi.yml' meta: noop -- name: '2021-07-27: SEE ALSO ~3 networking packages EARLIER installed by https://github.com/iiab/iiab/blob/master/roles/2-common/tasks/packages.yml' +- name: '2021-07-27: SEE ALSO ~4 networking packages EARLIER installed by https://github.com/iiab/iiab/blob/master/roles/2-common/tasks/packages.yml' meta: noop - name: Install package networkd-dispatcher (OS's other than RaspiOS) package: - name: networkd-dispatcher + name: networkd-dispatcher # Dispatcher service for systemd-networkd connection status changes state: present when: not is_raspbian -- name: 'Install network packages: hostapd, iproute2, iptables-persistent, netmask (debuntu) -- later used by https://github.com/iiab/iiab/tree/master/roles/network' +- name: 'Install network packages: hostapd, iproute2, iptables-persistent, netmask -- later used by https://github.com/iiab/iiab/tree/master/roles/network' package: name: - - iproute2 - - iptables-persistent - - hostapd - - netmask + - hostapd # IEEE 802.11 AP and IEEE 802.1X/WPA/WPA2/EAP Authenticator -- has its service masked out of the box, and only used when IIAB's network roles detects the presence of WiFi and an AP is desired + - iproute2 # 2021-07-27: RaspiOS installs this regardless -- the new networking and traffic control tools, meant to replace net-tools + - iptables-persistent # Boot-time loader for netfilter rules, iptables (firewall) plugin -- however 'netfilter' is ever moving forward so keep an eye on it! + - netmask # Handy utility -- helps determine network masks state: present - name: Install /etc/network/if-pre-up.d/iptables from template (0755, debuntu) From b768aa5edfbdbb73ee8cb4ef65a5ebfec711e1f2 Mon Sep 17 00:00:00 2001 From: A Holt Date: Tue, 27 Jul 2021 17:57:35 -0400 Subject: [PATCH 23/27] 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 1c2c0773d..c5cbb98ab 100644 --- a/roles/2-common/tasks/packages.yml +++ b/roles/2-common/tasks/packages.yml @@ -24,8 +24,8 @@ package: name: - acpid # Daemon for ACPI (power mgmt) events - #- avahi-discover # 2021-07-27: Commented out long ago - avahi-daemon # 2021-07-27: RaspiOS (and package libnss-mnds, below) install this regardless -- holdover from the XO days and used to advertise ssh/admin-console being available via avahi-daemon + #- avahi-discover # 2021-07-27: Commented out long ago - bzip2 # 2021-04-26: Prob not used, but can't hurt? - curl # Used to install roles/nodejs and roles/nodered #- etckeeper # "nobody is really using etckeeper and it's bloating the filesystem every time apt runs" per @jvonau at https://github.com/iiab/iiab/issues/1146 From 20ceebf515f756d1f444560a80a71ce3c2005812 Mon Sep 17 00:00:00 2001 From: A Holt Date: Tue, 27 Jul 2021 18:12:15 -0400 Subject: [PATCH 24/27] Update packages.yml --- roles/2-common/tasks/packages.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/2-common/tasks/packages.yml b/roles/2-common/tasks/packages.yml index c5cbb98ab..2c8e069d5 100644 --- a/roles/2-common/tasks/packages.yml +++ b/roles/2-common/tasks/packages.yml @@ -20,7 +20,7 @@ - name: '2021-07-27: SEE ALSO 4-5 networking packages LATER installed by https://github.com/iiab/iiab/blob/master/roles/2-common/tasks/network.yml' meta: noop -- name: "Install 21 common packages: acpid, avahi-daemon, bzip2, curl, gawk, htop, i2c-tools, libnss-mdns, logrotate, mlocate, net-tools, ntfs-3g, pandoc, pastebinit, rsync, sqlite3, tar, unzip, usbutils, wget, wpasupplicant" +- name: "Install 20 common packages: acpid, avahi-daemon, bzip2, curl, gawk, htop, i2c-tools, libnss-mdns, logrotate, mlocate, net-tools, pandoc, pastebinit, rsync, sqlite3, tar, unzip, usbutils, wget, wpasupplicant" package: name: - acpid # Daemon for ACPI (power mgmt) events @@ -30,7 +30,7 @@ - curl # Used to install roles/nodejs and roles/nodered #- etckeeper # "nobody is really using etckeeper and it's bloating the filesystem every time apt runs" per @jvonau at https://github.com/iiab/iiab/issues/1146 #- exfat-fuse # 2021-07-27: Should no longer be nec with 5.4+ kernels, so let's try commenting it out - #- exfat-utils # Ditto! + #- exfat-utils # Ditto! See also 'ntfs-3g' below - gawk - htop - i2c-tools # Low-level bus/chip/register/EEPROM tools e.g. for RTC @@ -42,7 +42,7 @@ #- make # 2021-07-27: Currently used by roles/pbx and no other roles - mlocate - net-tools # 2021-04-26: @jvonau suggests possibly deleting this...unless oldtimers really want these older commands in iiab-diagnostics output? - - ntfs-3g # Possibly no longer nec, similar to exfat packages above? + #- ntfs-3g # 2021-07-27: Should no longer be nec, similar to exfat packages above -- but see this symlink warning: https://superuser.com/questions/1050544/mount-with-kernel-ntfs-and-not-ntfs-3g #- openssh-server # ssh (Raspbian) or openssh-server (other OS's) already installed by 1-prep's roles/sshd/tasks/main.yml - pandoc # For /usr/bin/iiab-refresh-wiki-docs - pastebinit # For /usr/bin/iiab-diagnostics From ebd0288354c05e0fec824714dfb1c17f9608940e Mon Sep 17 00:00:00 2001 From: A Holt Date: Tue, 27 Jul 2021 18:35:57 -0400 Subject: [PATCH 25/27] 2-common/tasks/packages.yml: Clarify avahi-daemon used w/ avahi.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 2c8e069d5..e78076907 100644 --- a/roles/2-common/tasks/packages.yml +++ b/roles/2-common/tasks/packages.yml @@ -24,7 +24,7 @@ package: name: - acpid # Daemon for ACPI (power mgmt) events - - avahi-daemon # 2021-07-27: RaspiOS (and package libnss-mnds, below) install this regardless -- holdover from the XO days and used to advertise ssh/admin-console being available via avahi-daemon + - avahi-daemon # 2021-07-27: RaspiOS (and package libnss-mnds, below) install this regardless -- holdover from the XO days and used to advertise ssh/admin-console being available via avahi-daemon -- used with https://github.com/iiab/iiab/blob/master/roles/network/tasks/avahi.yml #- avahi-discover # 2021-07-27: Commented out long ago - bzip2 # 2021-04-26: Prob not used, but can't hurt? - curl # Used to install roles/nodejs and roles/nodered From 9b25ada48cef2a7f1223c7ae39992249668479c5 Mon Sep 17 00:00:00 2001 From: A Holt Date: Tue, 27 Jul 2021 18:51:50 -0400 Subject: [PATCH 26/27] 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 e78076907..bcb36cae1 100644 --- a/roles/2-common/tasks/packages.yml +++ b/roles/2-common/tasks/packages.yml @@ -42,7 +42,7 @@ #- make # 2021-07-27: Currently used by roles/pbx and no other roles - mlocate - net-tools # 2021-04-26: @jvonau suggests possibly deleting this...unless oldtimers really want these older commands in iiab-diagnostics output? - #- ntfs-3g # 2021-07-27: Should no longer be nec, similar to exfat packages above -- but see this symlink warning: https://superuser.com/questions/1050544/mount-with-kernel-ntfs-and-not-ntfs-3g + #- ntfs-3g # 2021-07-27: RaspiOS installs this regardless -- but this should no longer be nec, similar to exfat packages above -- however, see also this symlink warning: https://superuser.com/questions/1050544/mount-with-kernel-ntfs-and-not-ntfs-3g #- openssh-server # ssh (Raspbian) or openssh-server (other OS's) already installed by 1-prep's roles/sshd/tasks/main.yml - pandoc # For /usr/bin/iiab-refresh-wiki-docs - pastebinit # For /usr/bin/iiab-diagnostics From cdf7db76ee3b35360d15abbd985531ebabfde07f Mon Sep 17 00:00:00 2001 From: A Holt Date: Tue, 27 Jul 2021 18:53:21 -0400 Subject: [PATCH 27/27] 4-server-options/tasks/main.yml: comment tweak --- roles/4-server-options/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/4-server-options/tasks/main.yml b/roles/4-server-options/tasks/main.yml index 1759c5b7d..faa5ce574 100644 --- a/roles/4-server-options/tasks/main.yml +++ b/roles/4-server-options/tasks/main.yml @@ -18,7 +18,7 @@ name: pylibs #when: pylibs_install # Flag might be created in future? -- name: SSHD - also run by roles/1-prep/tasks/main.yml as required by OpenVPN +- name: SSHD -- also run by roles/1-prep/tasks/main.yml as required by OpenVPN include_role: name: sshd when: sshd_install