From c160378db0e64e0071db0a95277a368082ee448e Mon Sep 17 00:00:00 2001 From: songyanchao Date: Sun, 22 May 2022 22:14:54 -0400 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(TSG-10660):=20=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0MLX5=5FGLUE=5FPATH=E7=8E=AF=E5=A2=83=E5=8F=98=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加MLX5_GLUE_PATH环境变量到全局 --- ansible/roles/system-init/tasks/main.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ansible/roles/system-init/tasks/main.yml b/ansible/roles/system-init/tasks/main.yml index 42e62d60..5da89c8d 100644 --- a/ansible/roles/system-init/tasks/main.yml +++ b/ansible/roles/system-init/tasks/main.yml @@ -61,4 +61,9 @@ - name: "update initramfs" shell: dracut --force -v /boot/initramfs-5.4.159-1.el7.elrepo.x86_64.img 5.4.159-1.el7.elrepo.x86_64 - when: runtime_env != 'TSG-X-P1403' and runtime_env != 'TSG-X-P0804' \ No newline at end of file + when: runtime_env != 'TSG-X-P1403' and runtime_env != 'TSG-X-P0804' + +- name: "Export MLX5_GLUE_PATH" + lineinfile: + dest: /etc/profile + line: 'export MLX5_GLUE_PATH=/opt/tsg/mrzcpd/lib' \ No newline at end of file