# 2022-03-16: 'apt show <pkg> | grep Size' revealed download sizes, on 64-bit RasPiOS with desktop.

- name: "Install 17 common packages: acpid, bzip2, cron, curl, gawk, htop, i2c-tools, logrotate, plocate, pandoc, pastebinit, rsync, sqlite3, tar, unzip, usbutils, wget"
  package:
    name:
      - acpid              #   55kB download: Daemon for ACPI (power mgmt) events
      - bzip2              #   47kB download: RasPiOS installs this regardless -- 2021-04-26: Prob not used, but can't hurt?
      - cron               #   98kB download: RasPiOS installs this regardless -- 2022-10-13: Debian 12 needs this added (for now?)
      - curl               #  254kB download: RasPiOS installs this regardless -- Used to install roles/nodejs and roles/nodered
      #- etckeeper         #   54kB download: "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        #   28kB download: 2021-07-27: Should no longer be nec with 5.4+ kernels, so let's try commenting it out
      #- exfat-utils       #   41kB download: Ditto!  See also 'ntfs-3g' below
      - gawk               #  533kB download
      - htop               #  109kB download: RasPiOS installs this regardless
      - i2c-tools          #   78kB download: Low-level bus/chip/register/EEPROM tools e.g. for RTC
      - logrotate          #   67kB download: RasPiOS installs this regardless
      #- lynx              #  505kB download: Installed by 1-prep's roles/iiab-admin/tasks/main.yml
      #- make              #  376kB download: 2021-07-27: Currently used by roles/pbx and no other roles
      #- mlocate           #   92kB download
      - plocate            #   97kB download: Faster & smaller than locate & mlocate
      #- ntfs-3g           #  379kB download: RasPiOS installs this regardless -- 2021-07-31: But this should no longer be nec with 5.4+ kernels, similar to exfat packages above -- however, see also this symlink warning: https://superuser.com/questions/1050544/mount-with-kernel-ntfs-and-not-ntfs-3g -- and upcoming kernel 5.15 improvements: https://www.phoronix.com/scan.php?page=news_item&px=New-NTFS-Likely-For-Linux-5.15
      #- openssh-server    #  318kB download: RasPiOS installs this regardless -- this is also installed by 1-prep's roles/sshd/tasks/main.yml to cover all OS's
      - pandoc             #   19kB download: For /usr/bin/iiab-refresh-wiki-docs
      - pastebinit         #   47kB download: For /usr/bin/iiab-diagnostics
      #- python3-pip       #  337kB download: 2023-03-22: Used to be installed by /opt/iiab/iiab/scripts/ansible -- which would auto-install 'python3-setuptools' and 'python3' etc
      #- python3-venv      # 1188kB download: 2023-03-22: Already installed by /opt/iiab/iiab/scripts/ansible -- used by roles like {calibre-web, jupyterhub, lokole} -- whereas roles/kalite uses (virtual) package 'virtualenv' for Python 2 -- all these 3+1 IIAB roles install 'python3-venv' for themselves.  FYI: Debian 11 no longer auto-installs 'python3-venv' when you install 'python3'
      - rsync              #  351kB download: RasPiOS installs this regardless
      #- screen            #  551kB download: Installed by 1-prep's roles/iiab-admin/tasks/main.yml
      - sqlite3            # 1054kB download
      #- sudo              #  991kB download: RasPiOS installs this regardless -- (2) Can also be installed by roles/1-prep's roles/openvpn/tasks/install.yml, (3) Is definitely installed by 1-prep's roles/iiab-admin/tasks/sudo-prereqs.yml
      - tar                #  799kB download: RasPiOS installs this regardless
      - unzip              #  151kB download: RasPiOS installs this regardless
      #- usbmount          #   18kB download: Moved to roles/usb_lib/tasks/install.yml
      - usbutils           #   67kB download: RasPiOS installs this regardless -- 2021-07-27: move to roles/usb_lib/tasks/install.yml ?
      - wget               #  922kB download: RasPiOS installs this regardless
    state: present

#- 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
