aboutsummaryrefslogtreecommitdiffstats
path: root/fdio.infra.ansible/roles
diff options
context:
space:
mode:
Diffstat (limited to 'fdio.infra.ansible/roles')
-rw-r--r--fdio.infra.ansible/roles/docker_images/templates/docker-compose-tg.yaml.j219
-rw-r--r--fdio.infra.ansible/roles/mellanox/tasks/ofed.yaml2
2 files changed, 10 insertions, 11 deletions
diff --git a/fdio.infra.ansible/roles/docker_images/templates/docker-compose-tg.yaml.j2 b/fdio.infra.ansible/roles/docker_images/templates/docker-compose-tg.yaml.j2
index 1fd365eec0..6dcbc9f871 100644
--- a/fdio.infra.ansible/roles/docker_images/templates/docker-compose-tg.yaml.j2
+++ b/fdio.infra.ansible/roles/docker_images/templates/docker-compose-tg.yaml.j2
@@ -8,15 +8,15 @@ services:
expose:
- "6001"
hostname: "{{ ansible_hostname }}"
- networks:
- tg-nw-0:
+ network_mode: "host"
privileged: true
- ports:
- - "6001:6001"
restart: "always"
shm_size: "4G"
volumes:
- type: "bind"
+ source: "/usr/bin/ofed_info"
+ target: "/usr/bin/ofed_info"
+ - type: "bind"
source: "/dev/hugepages"
target: "/dev/hugepages"
- type: "bind"
@@ -39,15 +39,15 @@ services:
expose:
- "6002"
hostname: "{{ ansible_hostname }}"
- networks:
- tg-nw-1:
+ network_mode: "host"
privileged: true
- ports:
- - "6002:6002"
restart: "always"
shm_size: "4G"
volumes:
- type: "bind"
+ source: "/usr/bin/ofed_info"
+ target: "/usr/bin/ofed_info"
+ - type: "bind"
source: "/dev/hugepages"
target: "/dev/hugepages"
- type: "bind"
@@ -62,6 +62,3 @@ services:
- type: "bind"
source: "/usr/lib/firmware/"
target: "/usr/lib/firmware/"
-networks:
- tg-nw-0:
- tg-nw-1: \ No newline at end of file
diff --git a/fdio.infra.ansible/roles/mellanox/tasks/ofed.yaml b/fdio.infra.ansible/roles/mellanox/tasks/ofed.yaml
index 1084156412..177705c503 100644
--- a/fdio.infra.ansible/roles/mellanox/tasks/ofed.yaml
+++ b/fdio.infra.ansible/roles/mellanox/tasks/ofed.yaml
@@ -31,6 +31,8 @@
- name: Inst - Switch Infiniband to Ethernet
ansible.builtin.command: "mlxconfig --yes --dev {{ item }} set LINK_TYPE_P1=2 LINK_TYPE_P2=2"
with_items: "{{ mellanox_pcis.stdout_lines }}"
+ failed_when: false
+ changed_when: false
tags:
- mellanox-inst-drivers