diff --git a/defaults/main.yml b/defaults/main.yml index 7db4f6c..b61b2f9 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -37,6 +37,7 @@ aws_fpga_sdk_override_group: false # Xilinx Video SDK xilinx_video_sdk_install: false +xilinx_video_sdk_version: "" # Internals variables # ------------------- diff --git a/filter_plugins/main.py b/filter_plugins/main.py index a6d3d01..bc60313 100644 --- a/filter_plugins/main.py +++ b/filter_plugins/main.py @@ -436,13 +436,12 @@ def xrt_platform_pkg_files(plt_package_src, unarchive, ansible_facts, directory) return [join(directory, file) for file in files] -def video_sdk_release_dir(unarchive, version, ansible_facts, directory): +def video_sdk_release_dir(unarchive, ansible_facts, directory): """ Get release directory for Xilinx Video SDK. Args: unarchive (dict): "unarchive" task. - version (str): Xilinx Video SDK version. ansible_facts (dict): Ansible facts. directory (str): Directory path. @@ -467,8 +466,6 @@ def video_sdk_release_dir(unarchive, version, ansible_facts, directory): dist, "_", dist_version, - "_", - str(version), "_.*$", ) ) diff --git a/tasks/video_sdk.yml b/tasks/video_sdk.yml index 334701f..c9bb777 100644 --- a/tasks/video_sdk.yml +++ b/tasks/video_sdk.yml @@ -16,21 +16,6 @@ notify: Clean up Video SDK temporary directory when: not vsdk_xclbin.stat.exists -- name: Get the Xilinx Video SDK latest release - uri: - url: https://api.github.com/repos/Xilinx/video-sdk/releases/latest - body_format: json - register: _vsdk_release - retries: 10 - delay: 1 - until: _vsdk_release is successful - when: xilinx_video_sdk_version is not defined - -- name: Set the Xilinx Video SDK version to the latest release - set_fact: - xilinx_video_sdk_version: "{{ _vsdk_release.json['tag_name'] }}" - when: xilinx_video_sdk_version is not defined - - name: Ensure tar is present package: name: tar @@ -59,7 +44,7 @@ - name: Set Xilinx Video SDK release directory set_fact: - vsdk_release_path: "{{ vsdk_tar | video_sdk_release_dir(xilinx_video_sdk_version, ansible_facts, vsdk_tmp.path) }}" + vsdk_release_path: "{{ vsdk_tar | video_sdk_release_dir(ansible_facts, vsdk_tmp.path) }}" when: not vsdk_xclbin.stat.exists - name: Ensure Xilinx Video SDK dependencies are present