Let killall dhclient fail when fixing networking
Change-Id: Icf3eb4e0e6359e72b56455d2aa111dd3a23ad7ca
This commit is contained in:
parent
c2a82b31e9
commit
eaa417a71a
|
@ -45,8 +45,8 @@
|
|||
- name: Restart networking, dhclient, and calico-felix
|
||||
shell: "{{ item }}"
|
||||
when: needs_network_reset|bool and inventory_hostname in groups['k8s-cluster']
|
||||
failed_when: false # in case dhclient was stopped
|
||||
with_items:
|
||||
- killall -q dhclient --older-than {{ mtime_dhclientconf }}s
|
||||
- systemctl restart {{ networking_service_name }}
|
||||
- killall dhclient --older-than {{ mtime_dhclientconf }}s
|
||||
- docker exec calico-node killall -HUP calico-felix
|
||||
|
||||
|
|
Loading…
Reference in New Issue