mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 11:42:08 +00:00
Merge pull request #2882 from holta/packages.yml-cleanup
Explain networking packages in 1-prep and 2-common -- and experimentally deprecate exfat-fuse, exfat-utils, ntfs-3g -- mandating 5.4+ kernels
This commit is contained in:
commit
c01a567e59
3 changed files with 62 additions and 46 deletions
|
@ -22,7 +22,7 @@
|
||||||
path: /boot/firmware/usercfg.txt
|
path: /boot/firmware/usercfg.txt
|
||||||
line: "dtoverlay=i2c-rtc,{{ rtc_id }}=on"
|
line: "dtoverlay=i2c-rtc,{{ rtc_id }}=on"
|
||||||
state: present
|
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, starting in 2020 especially
|
||||||
|
|
||||||
#- name: Enable bluetooth in /boot/firmware/syscfg.txt on Ubuntu (needs reboot)
|
#- name: Enable bluetooth in /boot/firmware/syscfg.txt on Ubuntu (needs reboot)
|
||||||
# lineinfile:
|
# lineinfile:
|
||||||
|
@ -31,15 +31,28 @@
|
||||||
# line: 'include btcfg.txt'
|
# line: 'include btcfg.txt'
|
||||||
# when: is_ubuntu
|
# when: is_ubuntu
|
||||||
|
|
||||||
- name: 'Ensure packages are installed: dphys-swapfile, fake-hwclock, iw, rfkill, wireless-tools'
|
- 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:
|
package:
|
||||||
name:
|
name:
|
||||||
- dphys-swapfile
|
- cloud-guest-utils # Contains 'growpart' for resizing a partition during boot, which is normally done with the aid of cloud-init
|
||||||
- fake-hwclock
|
- dphys-swapfile # 2021-07-27: RaspiOS installs this regardless -- autogenerate and use a swap file
|
||||||
- iw
|
- fake-hwclock # 2021-07-27: RaspiOS installs this regardless -- save/restore system clock on machines without working RTC hardware
|
||||||
- rfkill
|
- 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
|
||||||
- wireless-tools
|
- rfkill # 2021-07-27: RaspiOS installs this regardless -- enable & disable wireless devices
|
||||||
- cloud-guest-utils
|
- wireless-tools # 2021-07-27: RaspiOS installs this regardless -- manipulate Linux Wireless Extensions
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: Increase swap file size (to CONF_SWAPSIZE={{ pi_swap_file_size }} in /etc/dphys-swapfile) as kalite pip download fails
|
- name: Increase swap file size (to CONF_SWAPSIZE={{ pi_swap_file_size }} in /etc/dphys-swapfile) as kalite pip download fails
|
||||||
|
|
|
@ -1,23 +1,26 @@
|
||||||
|
- 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 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)
|
- name: Install package networkd-dispatcher (OS's other than RaspiOS)
|
||||||
package:
|
package:
|
||||||
name: networkd-dispatcher
|
name: networkd-dispatcher # Dispatcher service for systemd-networkd connection status changes
|
||||||
state: present
|
state: present
|
||||||
when: not is_raspbian
|
when: not is_raspbian
|
||||||
|
|
||||||
# used in the network role
|
- name: 'Install network packages: hostapd, iproute2, iptables-persistent, netmask -- later used by https://github.com/iiab/iiab/tree/master/roles/network'
|
||||||
- name: 'Install network packages: hostapd, iproute2, iptables-persistent, netmask (debuntu)'
|
|
||||||
package:
|
package:
|
||||||
name:
|
name:
|
||||||
- iproute2
|
- 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
|
||||||
- iptables-persistent
|
- iproute2 # 2021-07-27: RaspiOS installs this regardless -- the new networking and traffic control tools, meant to replace net-tools
|
||||||
- hostapd
|
- iptables-persistent # Boot-time loader for netfilter rules, iptables (firewall) plugin -- however 'netfilter' is ever moving forward so keep an eye on it!
|
||||||
- netmask
|
- netmask # Handy utility -- helps determine network masks
|
||||||
state: present
|
state: present
|
||||||
when: is_debuntu
|
|
||||||
|
|
||||||
- name: Install /etc/network/if-pre-up.d/iptables from template (0755, debuntu)
|
- name: Install /etc/network/if-pre-up.d/iptables from template (0755, debuntu)
|
||||||
template:
|
template:
|
||||||
src: iptables
|
src: iptables
|
||||||
dest: /etc/network/if-pre-up.d/iptables
|
dest: /etc/network/if-pre-up.d/iptables
|
||||||
mode: '0755'
|
mode: '0755'
|
||||||
when: is_debuntu
|
|
||||||
|
|
|
@ -14,46 +14,46 @@
|
||||||
# state: present
|
# state: present
|
||||||
# when: is_redhat
|
# when: is_redhat
|
||||||
|
|
||||||
- name: "Install 6 deb/apt packages: avahi-daemon, exfat-fuse, exfat-utils, inetutils-syslogd, libnss-mdns, wpasupplicant"
|
- 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'
|
||||||
package:
|
meta: noop
|
||||||
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
|
|
||||||
state: present
|
|
||||||
#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"
|
- 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 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:
|
package:
|
||||||
name:
|
name:
|
||||||
- acpid # Daemon for ACPI (power mgmt) events
|
- acpid # Daemon for ACPI (power mgmt) events
|
||||||
- bzip2 # 2021-04-26: Prob not used, but can't hurt?
|
- 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
|
||||||
- curl # Used to install roles/nodejs and roles/nodered
|
#- avahi-discover # 2021-07-27: Commented out long ago
|
||||||
#- 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
|
- 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! See also 'ntfs-3g' below
|
||||||
- gawk
|
- gawk
|
||||||
- htop
|
- htop
|
||||||
- i2c-tools # Low-level bus/chip/register/EEPROM tools e.g. for RTC
|
- i2c-tools # Low-level bus/chip/register/EEPROM tools e.g. for RTC
|
||||||
#- iproute2 # Installed by roles/2-common/tasks/network.yml
|
#- 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
|
- logrotate
|
||||||
#- lynx # Installed by 1-prep's roles/iiab-admin/tasks/access.yml
|
- 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
|
||||||
#- make # 2021-07-27: Currently used by roles/pbx and no other roles
|
#- 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
|
- mlocate
|
||||||
- net-tools # 2021-04-26: @jvonau suggests possibly deleting this...unless oldtimers really want these older commands in iiab-diagnostics output?
|
- 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
|
#- 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
|
- pandoc # For /usr/bin/iiab-refresh-wiki-docs
|
||||||
- pastebinit # For /usr/bin/iiab-diagnostics
|
- pastebinit # For /usr/bin/iiab-diagnostics
|
||||||
- rsync
|
- 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
|
- 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
|
- tar
|
||||||
- unzip
|
- unzip
|
||||||
#- usbmount # Moved to roles/usb_lib/tasks/install.yml
|
#- usbmount # Moved to roles/usb_lib/tasks/install.yml
|
||||||
- usbutils # 2021-04-26: Also move to roles/usb_lib/tasks/install.yml ?
|
- usbutils # 2021-07-27: RaspiOS installs this regardless -- move to roles/usb_lib/tasks/install.yml ?
|
||||||
- wget
|
- wget
|
||||||
|
- wpasupplicant # 2021-07-27: RaspiOS installs this regardless -- client library for connections to a WiFi AP
|
||||||
state: present
|
state: present
|
||||||
|
|
Loading…
Reference in a new issue