summaryrefslogtreecommitdiff
path: root/roles/prepare-dkms/tasks/main.yml
blob: 052d26846786403e936f8d4dbf0b2aae21117ebd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
---
- name: prepare dkms on scaleway boxes
  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

- name: prepare dkms on normal debian boxes
  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