diff options
Diffstat (limited to 'fdio.infra.ansible/roles/mellanox/tasks')
-rw-r--r-- | fdio.infra.ansible/roles/mellanox/tasks/main.yaml | 2 | ||||
-rw-r--r-- | fdio.infra.ansible/roles/mellanox/tasks/ofed.yaml | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/fdio.infra.ansible/roles/mellanox/tasks/main.yaml b/fdio.infra.ansible/roles/mellanox/tasks/main.yaml index 81fefc8ae3..7f47981378 100644 --- a/fdio.infra.ansible/roles/mellanox/tasks/main.yaml +++ b/fdio.infra.ansible/roles/mellanox/tasks/main.yaml @@ -13,7 +13,7 @@ - name: Inst - Prerequisites package: name: "{{ packages | flatten(levels=1) }}" - state: latest + state: "latest" tags: - mellanox-inst-drivers diff --git a/fdio.infra.ansible/roles/mellanox/tasks/ofed.yaml b/fdio.infra.ansible/roles/mellanox/tasks/ofed.yaml index 2ad40b0afb..732397d269 100644 --- a/fdio.infra.ansible/roles/mellanox/tasks/ofed.yaml +++ b/fdio.infra.ansible/roles/mellanox/tasks/ofed.yaml @@ -2,7 +2,7 @@ # file: roles/mellanox/tasks/ofed.yaml - name: Inst - Get OFED - get_url: + ansible.builtin.get_url: url: "{{ mellanox_download_url }}/MLNX_OFED-{{ ofed }}/MLNX_OFED_LINUX-{{ ofed }}-{{ ansible_distribution|lower }}{{ ansible_distribution_version }}-{{ ansible_machine }}.tgz" dest: "{{ mellanox_extract_dir }}/MLNX_OFED_LINUX-{{ ofed }}-{{ ansible_distribution|lower }}{{ ansible_distribution_version }}-{{ ansible_machine }}.tgz" mode: "0644" @@ -11,7 +11,7 @@ - mellanox-inst-drivers - name: Inst - Extract OFED - unarchive: + ansible.builtin.unarchive: remote_src: true src: "{{ mellanox_extract_dir }}/MLNX_OFED_LINUX-{{ ofed }}-{{ ansible_distribution|lower }}{{ ansible_distribution_version }}-{{ ansible_machine }}.tgz" dest: "{{ mellanox_extract_dir }}/" @@ -21,7 +21,7 @@ - mellanox-inst-drivers - name: Inst - OFED - command: "./mlnxofedinstall --with-mft --dpdk --force --upstream-libs --without-fw-update" + ansible.builtin.command: "./mlnxofedinstall --with-mft --dpdk --force --upstream-libs --without-fw-update" args: chdir: "{{ mellanox_extract_dir }}/MLNX_OFED_LINUX-{{ ofed }}-{{ ansible_distribution|lower }}{{ ansible_distribution_version }}-{{ ansible_machine }}" when: mellanox_firmware_extracted @@ -29,14 +29,14 @@ - mellanox-inst-drivers - name: Inst - Switch Infiniband to Ethernet - command: "mlxconfig --yes --dev {{ item }} set LINK_TYPE_P1=2 LINK_TYPE_P2=2" + ansible.builtin.command: "mlxconfig --yes --dev {{ item }} set LINK_TYPE_P1=2 LINK_TYPE_P2=2" with_items: "{{ mellanox_pcis.stdout_lines }}" tags: - mellanox-inst-drivers - name: FIX qemu-system removal - package: + ansible.builtin.package: name: "qemu-system" - state: latest + state: "latest" tags: - mellanox-inst-drivers |