Skip to content
This repository has been archived by the owner on Feb 28, 2023. It is now read-only.

Commit

Permalink
Fix issue when Kernel module install requires reboot and /tmp is a tm…
Browse files Browse the repository at this point in the history
…pfs.
  • Loading branch information
JGoutin committed Feb 17, 2022
1 parent 793f110 commit 552755e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 12 deletions.
6 changes: 3 additions & 3 deletions tasks/aws_fpga.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
---

- include_tasks: kernel.yml
when: aws_fpga_driver is defined

- name: Get "/usr/local/lib64" directory information
stat:
path: /usr/local/lib64
Expand Down Expand Up @@ -110,9 +113,6 @@
executable: /bin/bash
when: not libfpga_mgmt.stat.exists

- include_tasks: kernel.yml
when: aws_fpga_driver is defined

- name: Install AWS FPGA alternate driver
command: "make -C {{ aws_fpga_src }}/sdk/linux_kernel_drivers/{{ aws_fpga_driver }} install"
changed_when: false
Expand Down
6 changes: 3 additions & 3 deletions tasks/video_sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
path: /opt/xilinx/xcdr/xclbins/transcode.xclbin
register: vsdk_xclbin

- include_tasks: kernel.yml
when: not vsdk_xclbin.stat.exists

- include_tasks: epel.yml
when: not vsdk_xclbin.stat.exists

Expand Down Expand Up @@ -39,9 +42,6 @@
until: vsdk_tar is successful
when: not vsdk_xclbin.stat.exists

- include_tasks: kernel.yml
when: not vsdk_xclbin.stat.exists

- name: Set Xilinx Video SDK release directory
set_fact:
vsdk_release_path: "{{ vsdk_tar | video_sdk_release_dir(ansible_facts, vsdk_tmp.path) }}"
Expand Down
12 changes: 8 additions & 4 deletions tasks/xrt.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
---

- name: Get "xbutil" file information
stat:
path: /opt/xilinx/xrt/bin/xbutil
register: xbutil

- name: Ensure Linux kernel version is compatible
include_role:
name: accelize.linux_kernel
Expand All @@ -9,11 +14,10 @@
- xilinx_xrt_ensure_compatible_kernel | bool
- xrt_required_kernel != "" # noqa empty-string-compare
- not (xilinx_xrt_container | bool)
- not xbutil.stat.exists

- name: Get "xbutil" file information
stat:
path: /opt/xilinx/xrt/bin/xbutil
register: xbutil
- include_tasks: kernel.yml
when: not xbutil.stat.exists

- name: Create temporary directory
tempfile:
Expand Down
2 changes: 0 additions & 2 deletions tasks/xrt_from_pkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,5 +120,3 @@
when:
- ansible_distribution == "CentOS"
- ansible_distribution_major_version == "8"

- include_tasks: kernel.yml

0 comments on commit 552755e

Please sign in to comment.