diff options
author | 2021-02-15 16:16:31 +0000 | |
---|---|---|
committer | 2021-02-19 11:57:30 +0000 | |
commit | 7b93e96740997dab4383140a639b055e074f63c1 (patch) | |
tree | 8d54d10e65af9a6c58546fd3b36aed9cb8d174af /resources/tools/testbed-setup/ansible/roles/mellanox | |
parent | ecfe59f83a49e0dda9cead06b81339e4ea545053 (diff) |
Infra: Ansible Ubuntu Focal
Signed-off-by: pmikus <pmikus@cisco.com>
Change-Id: I6558938fe4bbdfb5add7a361adb4a12da6b0a6dc
Diffstat (limited to 'resources/tools/testbed-setup/ansible/roles/mellanox')
-rw-r--r-- | resources/tools/testbed-setup/ansible/roles/mellanox/tasks/main.yaml | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/resources/tools/testbed-setup/ansible/roles/mellanox/tasks/main.yaml b/resources/tools/testbed-setup/ansible/roles/mellanox/tasks/main.yaml index 1b81215a73..670282923a 100644 --- a/resources/tools/testbed-setup/ansible/roles/mellanox/tasks/main.yaml +++ b/resources/tools/testbed-setup/ansible/roles/mellanox/tasks/main.yaml @@ -17,24 +17,24 @@ tags: - mellanox-inst-prerequisites -- name: Check Presence of Mellanox Hardware +- name: Inst - Check Presence of Mellanox Hardware shell: "lspci | grep Mellanox | awk '{print $1}'" register: mellanox_pcis failed_when: no changed_when: no tags: - - install-mellanox + - mellanox-inst -- name: Get OFED +- name: Inst - Get OFED get_url: url: "http://content.mellanox.com/ofed/MLNX_OFED-{{ mellanox_version }}/MLNX_OFED_LINUX-{{ mellanox_version }}-{{ ansible_distribution|lower }}{{ ansible_distribution_version }}-{{ ansible_machine }}.tgz" dest: "/opt/MLNX_OFED_LINUX-{{ mellanox_version }}-{{ ansible_distribution|lower }}{{ ansible_distribution_version }}-{{ ansible_machine }}.tgz" mode: 0644 when: mellanox_pcis.stdout_lines | length > 0 tags: - - install-mellanox + - mellanox-inst -- name: Extract OFED +- name: Inst - Extract OFED unarchive: remote_src: true src: "/opt/MLNX_OFED_LINUX-{{ mellanox_version }}-{{ ansible_distribution|lower }}{{ ansible_distribution_version }}-{{ ansible_machine }}.tgz" @@ -43,25 +43,25 @@ register: mellanox_firmware_extracted when: mellanox_pcis.stdout_lines | length > 0 tags: - - install-mellanox + - mellanox-inst -- name: Install OFED +- name: Inst - OFED command: "./mlnxofedinstall --with-mft --dpdk --force --upstream-libs" args: chdir: "/opt/MLNX_OFED_LINUX-{{ mellanox_version }}-{{ ansible_distribution|lower }}{{ ansible_distribution_version }}-{{ ansible_machine }}" when: mellanox_pcis.stdout_lines | length > 0 and mellanox_firmware_extracted tags: - - install-mellanox + - mellanox-inst - name: Switch Infiniband to Ethernet command: "mlxconfig --yes --dev {{ item }} set LINK_TYPE_P1=2 LINK_TYPE_P2=2" with_items: "{{ mellanox_pcis.stdout_lines }}" tags: - - install-mellanox + - mellanox-conf - name: FIX qemu-system removal package: name: "qemu-system" state: latest tags: - - install-mellanox + - mellanox-inst |