diff options
author | pmikus <peter.mikus@protonmail.ch> | 2023-04-12 07:46:55 +0000 |
---|---|---|
committer | Peter Mikus <peter.mikus@protonmail.ch> | 2023-04-12 07:48:34 +0000 |
commit | af032f688a71cbb94f213be89db18190fe927e69 (patch) | |
tree | 9e3641b06033247538f6f8f8d07bd7044039fbec /fdio.infra.ansible/roles/intel/tasks/dsa.yaml | |
parent | 5edaac881f42de498d92efca3fbbfab8e2e47e71 (diff) |
feat(ansible): Intel DMAoper-230417
Signed-off-by: pmikus <peter.mikus@protonmail.ch>
Change-Id: I68a6965712c7e4b39f931fb4487142fa9c5088dc
Diffstat (limited to 'fdio.infra.ansible/roles/intel/tasks/dsa.yaml')
-rw-r--r-- | fdio.infra.ansible/roles/intel/tasks/dsa.yaml | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/fdio.infra.ansible/roles/intel/tasks/dsa.yaml b/fdio.infra.ansible/roles/intel/tasks/dsa.yaml new file mode 100644 index 0000000000..2f038b0e9f --- /dev/null +++ b/fdio.infra.ansible/roles/intel/tasks/dsa.yaml @@ -0,0 +1,39 @@ +--- +# file: tasks/dsa.yaml + +- name: Get DSA Driver + ansible.builtin.uri: + url: "{{ intel_dsa_url[dsa] }}" + follow_redirects: "all" + force: true + dest: "{{ intel_extract_dir }}/accel-config-v{{ dsa }}.tar.gz" + mode: "0644" + failed_when: false + tags: + - intel-inst + +- name: Extract DSA Driver + ansible.builtin.unarchive: + remote_src: true + src: "{{ intel_extract_dir }}/accel-config-v{{ dsa }}.tar.gz" + dest: "{{ intel_extract_dir }}/" + creates: "{{ intel_extract_dir }}/idxd-config-accel-config-v{{ dsa }}" + register: intel_driver_extracted + tags: + - intel-inst + +- name: Install DSA Driver + ansible.builtin.command: "{{ item }}" + args: + chdir: "{{ intel_extract_dir }}/idxd-config-accel-config-v{{ dsa }}" + become: true + with_items: + - "./autogen.sh" + - "./configure CFLAGS='-g -O2' --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib64" + - "make" + - "make check" + - "make install" + when: + - intel_driver_extracted + tags: + - intel-inst |