summaryrefslogtreecommitdiff
path: root/roles/prepare-dkms/tasks/main.yml
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2023-01-08 23:16:26 +0100
committerChristian Pointner <equinox@spreadspace.org>2023-01-08 23:16:26 +0100
commitbad0b3558e8f2eb02b50815c1ec61d457bdd44ec (patch)
tree66e11b70bdfe8933a3ef567ac3fc765c5adb62c4 /roles/prepare-dkms/tasks/main.yml
parentpromzone chaos-at-home: upgrade prometheus components (diff)
parentch-epimetheus now is a RPi CM4 (diff)
Merge branch 'topic/epimetheus-cm4'
Diffstat (limited to 'roles/prepare-dkms/tasks/main.yml')
-rw-r--r--roles/prepare-dkms/tasks/main.yml7
1 files changed, 4 insertions, 3 deletions
diff --git a/roles/prepare-dkms/tasks/main.yml b/roles/prepare-dkms/tasks/main.yml
index 23533345..052d2684 100644
--- a/roles/prepare-dkms/tasks/main.yml
+++ b/roles/prepare-dkms/tasks/main.yml
@@ -1,14 +1,15 @@
---
- name: prepare dkms on scaleway boxes
- include_tasks: scaleway.yml
when: "'scaleway-kernel' in group_names"
+ include_tasks: scaleway.yml
- name: prepare dkms on for raspberry-pi
+ when: "('id' in ansible_lsb and ansible_lsb.id == 'Raspbian') or ('raspios' in group_names)"
include_tasks: raspberrypi.yml
- when: "('id' in ansible_lsb and ansible_lsb.id == 'Raspbian')"
- name: prepare dkms on normal debian boxes
- include_tasks: default.yml
when:
- "'scaleway-kernel' not in group_names"
+ - "'raspios' not in group_names"
- "('id' not in ansible_lsb or ansible_lsb.id != 'Raspbian')"
+ include_tasks: default.yml