Skip to content

Commit 804c52c

Browse files
Update interface restart for non RDMA shapes
1 parent 5c14d92 commit 804c52c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

playbooks/roles/rdma-interface/tasks/debian.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,5 @@
3636

3737
- name: restart_interface
3838
command: bash -c "ifdown {{ item['item']['device'] }} && ifup {{ item['item']['device'] }}"
39-
when: item.changed
39+
when: ansible_mlx is defined and item.changed|default(false)
4040
with_items: "{{ rdma_interface['results'] }}"

playbooks/roles/rdma-interface/tasks/el.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,5 @@
3636

3737
- name: restart_interface
3838
command: bash -c "ifdown {{ item['item']['device'] }} && ifup {{ item['item']['device'] }}"
39-
when: item.changed
39+
when: ansible_mlx is defined and item.changed|default(false)
4040
with_items: "{{ rdma_interface['results'] }}"

0 commit comments

Comments
 (0)