WIP: add specific packages for raspberry pi on Ubuntu 21.01 (#180)

* add specific packages for raspberry pi

* Update provision/ansible/roles/ubuntu/tasks/packages.yml

Co-authored-by: Devin Buhl <onedr0p@users.noreply.github.com>

* add condition for ubuntu 21 or greater

Co-authored-by: Devin Buhl <onedr0p@users.noreply.github.com>
This commit is contained in:
Alexander RabensteinandDevin Buhl authored and GitHub committed 2022-01-02 06:48:45 -05:00
1 parent 3d131fd542
commit ec858831cb
1 file changed
+19
@@ -37,6 +37,25 @@
retries: 5
until: apt_install_common is success
- name: Check if Raspberry Pi
command: grep -q "Raspberry Pi" /proc/cpuinfo
ignore_errors: true
register: is_raspberry
- name: Install raspberry specific packages for Ubuntu 21 or greater
ansible.builtin.apt:
name:
- linux-modules-extra-raspi
install_recommends: false
update_cache: true
cache_valid_time: 3600
autoclean: true
autoremove: true
register: apt_install_raspberry
retries: 5
until: apt_install_raspberry is success
when: is_raspberry and (ansible_lsb.major_release|int >= 21)
- name: Copy 20auto-upgrades unattended-upgrades config
ansible.builtin.blockinfile:
path: /etc/apt/apt.conf.d/20auto-upgrades