24 lines
498 B
YAML
24 lines
498 B
YAML
#!/usr/bin/ansible-playbook
|
|
# vim:ft=ansible:
|
|
---
|
|
- name: Install DKMS module
|
|
block:
|
|
- name: Install packages
|
|
apt:
|
|
name:
|
|
- dkms
|
|
- name: Clone repository
|
|
git:
|
|
repo: "{{ dkms_repo }}"
|
|
dest: "/usr/src/{{ dkms_name }}"
|
|
register: r
|
|
- name: Add DKMS module
|
|
command:
|
|
argv:
|
|
- /usr/sbin/dkms
|
|
- add
|
|
- "/usr/src/{{ dkms_name }}"
|
|
notify: dkms autoinstall
|
|
when: r is changed
|
|
become: yes
|