blob: 57626d150dc92e9c87e7fc2ce6d85811a3b4b971 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
---
- name: install build deps and dkms
with_items:
- build-essential
- libssl-dev
- dkms
apt:
name: "{{ item }}"
state: present
- name: install (sadly missing) script to fetch kernel sources
copy:
src: my_scw-fetch-kernel-sources
dest: /usr/local/sbin/
mode: 0755
notify: fetch scaleway kernel sources
- name: check if sources are already initialized
stat:
path: "/lib/modules/{{ ansible_kernel }}/build"
follow: yes
get_mime: no
get_checksum: no
get_md5: no
register: build_directory
changed_when: build_directory.stat.exists == False
notify: fetch scaleway kernel sources
- name: fetch kernel sources
meta: flush_handlers
|