Let killall dhclient fail when fixing networking

Change-Id: Icf3eb4e0e6359e72b56455d2aa111dd3a23ad7ca
This commit is contained in:
Matthew Mosesohn 2017-02-06 20:54:53 +04:00
parent c2a82b31e9
commit eaa417a71a
1 changed files with 2 additions and 2 deletions

View File

@ -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