File tree Expand file tree Collapse file tree 4 files changed +15
-7
lines changed Expand file tree Collapse file tree 4 files changed +15
-7
lines changed Original file line number Diff line number Diff line change 1- - name : restart_interface
2- command : bash -c "ifdown {{ item['item']['device'] }} && ifup {{ item['item']['device'] }}"
3- when : item.changed
4- with_items : " {{ rdma_interface['results'] }}"
Original file line number Diff line number Diff line change 2525
2626- name : create interface files
2727 register : rdma_interface
28- notify : restart_interface
2928 template :
3029 src : interface.j2
3130 dest : " /etc/network/interfaces.d/{{ item['device'] }}"
3433 loop : " {{ ansible_mlx }}"
3534 loop_control :
3635 index_var : index
36+
37+ - name : restart_interface
38+ command : bash -c "ifdown {{ item['item']['device'] }} && ifup {{ item['item']['device'] }}"
39+ when : item.changed
40+ with_items : " {{ rdma_interface['results'] }}"
Original file line number Diff line number Diff line change 2323 with_items :
2424 - " {{ hostvars[inventory_hostname]['ansible_interfaces'] | sort }}"
2525
26-
2726- name : create interface files
2827 register : rdma_interface
29- notify : restart_interface
3028 template :
3129 src : ifcfg.j2
3230 dest : " /etc/sysconfig/network-scripts/ifcfg-{{ item['device'] }}"
3533 loop : " {{ ansible_mlx }}"
3634 loop_control :
3735 index_var : index
36+
37+ - name : restart_interface
38+ command : bash -c "ifdown {{ item['item']['device'] }} && ifup {{ item['item']['device'] }}"
39+ when : item.changed
40+ with_items : " {{ rdma_interface['results'] }}"
Original file line number Diff line number Diff line change 152152 tasks :
153153 - include_role :
154154 name : rdma-interface
155+
156+ - hosts : compute
157+ become : true
158+ gather_facts : true
159+ tasks :
155160 - include_role :
156161 name : hyperthreading
157162 when : not hyperthreading|default(true)|bool
You can’t perform that action at this time.
0 commit comments