2016-12-07 23:57:05 +08:00
|
|
|
- name: Preinstall | restart network
|
2016-08-29 22:39:55 +08:00
|
|
|
command: /bin/true
|
|
|
|
notify:
|
2016-12-07 23:57:05 +08:00
|
|
|
- Preinstall | reload network
|
2016-11-30 21:06:11 +08:00
|
|
|
- Preinstall | reload kubelet
|
2017-01-05 23:32:08 +08:00
|
|
|
when: not ansible_os_family in ["CoreOS", "Container Linux by CoreOS"]
|
2016-08-29 22:39:55 +08:00
|
|
|
|
2016-11-30 21:06:11 +08:00
|
|
|
# FIXME(bogdando) https://github.com/projectcalico/felix/issues/1185
|
2016-12-07 23:57:05 +08:00
|
|
|
- name: Preinstall | reload network
|
2016-08-18 23:14:52 +08:00
|
|
|
service:
|
|
|
|
name: >-
|
|
|
|
{% if ansible_os_family == "RedHat" -%}
|
|
|
|
network
|
|
|
|
{%- elif ansible_os_family == "Debian" -%}
|
|
|
|
networking
|
|
|
|
{%- endif %}
|
|
|
|
state: restarted
|
2017-01-05 23:32:08 +08:00
|
|
|
when: not ansible_os_family in ["CoreOS", "Container Linux by CoreOS"] and kube_network_plugin not in ['canal', 'calico']
|
2016-11-23 22:49:10 +08:00
|
|
|
|
2017-01-05 18:35:16 +08:00
|
|
|
- name: Preinstall | update resolvconf for Container Linux by CoreOS
|
2016-11-23 22:49:10 +08:00
|
|
|
command: /bin/true
|
|
|
|
notify:
|
2016-12-07 23:57:05 +08:00
|
|
|
- Preinstall | apply resolvconf cloud-init
|
|
|
|
- Preinstall | reload kubelet
|
2017-01-05 23:32:08 +08:00
|
|
|
when: ansible_os_family in ["CoreOS", "Container Linux by CoreOS"]
|
2016-09-27 17:54:12 +08:00
|
|
|
|
2016-12-07 23:57:05 +08:00
|
|
|
- name: Preinstall | apply resolvconf cloud-init
|
2016-11-23 22:49:10 +08:00
|
|
|
command: /usr/bin/coreos-cloudinit --from-file {{ resolveconf_cloud_init_conf }}
|
2017-01-05 23:32:08 +08:00
|
|
|
when: ansible_os_family in ["CoreOS", "Container Linux by CoreOS"]
|
2016-11-23 22:49:10 +08:00
|
|
|
|
2016-12-07 23:57:05 +08:00
|
|
|
- name: Preinstall | reload kubelet
|
2016-09-27 17:54:12 +08:00
|
|
|
service:
|
|
|
|
name: kubelet
|
|
|
|
state: restarted
|
2016-12-07 23:57:05 +08:00
|
|
|
when: "{{ inventory_hostname in groups['kube-master'] and not dns_early|bool }}"
|