diff --git a/roles/raspberrypi/tasks/prereq/Ubuntu.yml b/roles/raspberrypi/tasks/prereq/Ubuntu.yml index 0f3919c52..71cc24b58 100644 --- a/roles/raspberrypi/tasks/prereq/Ubuntu.yml +++ b/roles/raspberrypi/tasks/prereq/Ubuntu.yml @@ -15,4 +15,4 @@ name: linux-modules-extra-raspi update_cache: true state: present - when: "ansible_distribution_version is version('20.10', '>=')" + when: "ansible_distribution_version is version('20.10', '>=') and ansible_distribution_version is version('24.04', '<')"