Skip to content

Commit

Permalink
Update interface restart for non RDMA shapes
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcinZablocki committed Jun 11, 2021
1 parent 5c14d92 commit 804c52c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion playbooks/roles/rdma-interface/tasks/debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@

- name: restart_interface
command: bash -c "ifdown {{ item['item']['device'] }} && ifup {{ item['item']['device'] }}"
when: item.changed
when: ansible_mlx is defined and item.changed|default(false)
with_items: "{{ rdma_interface['results'] }}"
2 changes: 1 addition & 1 deletion playbooks/roles/rdma-interface/tasks/el.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@

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

0 comments on commit 804c52c

Please sign in to comment.