diff options
Diffstat (limited to 'resources/tools/testbed-setup/ansible/roles/mellanox')
-rw-r--r-- | resources/tools/testbed-setup/ansible/roles/mellanox/defaults/main.yaml | 2 | ||||
-rw-r--r-- | resources/tools/testbed-setup/ansible/roles/mellanox/tasks/main.yaml | 8 |
2 files changed, 10 insertions, 0 deletions
diff --git a/resources/tools/testbed-setup/ansible/roles/mellanox/defaults/main.yaml b/resources/tools/testbed-setup/ansible/roles/mellanox/defaults/main.yaml index 2b6d3a366e..a77bc67ec7 100644 --- a/resources/tools/testbed-setup/ansible/roles/mellanox/defaults/main.yaml +++ b/resources/tools/testbed-setup/ansible/roles/mellanox/defaults/main.yaml @@ -9,6 +9,8 @@ packages_base: packages_by_distro: ubuntu: - "build-essential" + - "libnl-3-dev" + - "libnl-route-3-dev" packages_by_arch: aarch64: 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 030cf59b66..e91442718e 100644 --- a/resources/tools/testbed-setup/ansible/roles/mellanox/tasks/main.yaml +++ b/resources/tools/testbed-setup/ansible/roles/mellanox/tasks/main.yaml @@ -1,6 +1,14 @@ --- # file: roles/mellanox/tasks/main.yaml +- name: Mellanox Install - Install Distribution - Release - Machine Prerequisites + package: + name: "{{ packages | flatten(levels=1) }}" + state: latest + update_cache: true + tags: + - install-dependencies + - name: Mellanox Install - Check Presence of Mellanox Hardware shell: "lspci | grep Mellanox | awk '{print $1}'" register: mellanox_pcis |