blob: 5d4df343319f0eb2ba00c1daac7f740cf6d30152 [file] [log] [blame]
Zack Williamse8a0ea42021-11-30 00:06:01 -07001---
2# dkms tasks/main.yml
3#
4# SPDX-FileCopyrightText: © 2021 Open Networking Foundation <support@opennetworking.org>
5# SPDX-License-Identifier: Apache-2.0
6
7- name: include OS-specific vars
8 include_vars: "{{ ansible_os_family }}.yml"
9
10- name: include OS-specific tasks
11 include_tasks: "{{ ansible_os_family }}.yml"
12
13- name: Create dist dir
14 file:
15 path: "{{ dkms_dist_dir }}"
16 state: directory
17 owner: "root"
18 group: "root"
19 mode: "0755"
20
21- name: Include DKMS modules
22 include_tasks: "{{ dkms_module }}.yml"
23 loop: "{{ dkms_modules | flatten(levels=1) }}"
24 loop_control:
25 loop_var: dkms_module