Skip to content

Commit

Permalink
fix: download the current version of kernel tree (#3665)
Browse files Browse the repository at this point in the history
  • Loading branch information
tannal authored Apr 2, 2024
1 parent 223057c commit f47378d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ansible/roles/linux-perf/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,15 @@
state: absent
path: "{{ tmp_folder }}"

- name: Get current kernel version
ansible.builtin.shell: uname -r | awk -F. '{print $1"."$2}'
register: kernel_version
changed_when: false

- name: Download Linux source code
git:
repo: https://github.com/torvalds/linux.git
version: "v{{ kernel_version.stdout }}"
depth: 1
dest: "{{ tmp_folder }}/linux"

Expand Down

0 comments on commit f47378d

Please sign in to comment.