2016-12-07 15:57:05 +00:00
|
|
|
- name: Preinstall | restart network
|
2016-08-29 14:39:55 +00:00
|
|
|
command: /bin/true
|
|
|
|
notify:
|
2016-12-07 15:57:05 +00:00
|
|
|
- Preinstall | reload network
|
|
|
|
- Preinstall | update resolvconf
|
2016-08-29 14:39:55 +00:00
|
|
|
when: ansible_os_family != "CoreOS"
|
|
|
|
|
2016-12-07 15:57:05 +00:00
|
|
|
- name: Preinstall | reload network
|
2016-08-18 15:14:52 +00:00
|
|
|
service:
|
|
|
|
name: >-
|
|
|
|
{% if ansible_os_family == "RedHat" -%}
|
|
|
|
network
|
|
|
|
{%- elif ansible_os_family == "Debian" -%}
|
|
|
|
networking
|
|
|
|
{%- endif %}
|
|
|
|
state: restarted
|
2016-08-29 14:39:55 +00:00
|
|
|
when: ansible_os_family != "RedHat" and ansible_os_family != "CoreOS"
|
|
|
|
|
2016-12-07 15:57:05 +00:00
|
|
|
- name: Preinstall | update resolvconf
|
2016-09-27 09:54:12 +00:00
|
|
|
command: /bin/true
|
|
|
|
notify:
|
2016-12-07 15:57:05 +00:00
|
|
|
- Preinstall | reload resolvconf
|
|
|
|
- Preinstall | reload kubelet
|
2016-11-23 14:49:10 +00:00
|
|
|
when: ansible_os_family != "CoreOS"
|
|
|
|
|
2016-12-07 15:57:05 +00:00
|
|
|
- name: Preinstall | update resolvconf for CoreOS
|
2016-11-23 14:49:10 +00:00
|
|
|
command: /bin/true
|
|
|
|
notify:
|
2016-12-07 15:57:05 +00:00
|
|
|
- Preinstall | apply resolvconf cloud-init
|
|
|
|
- Preinstall | reload kubelet
|
2016-11-23 14:49:10 +00:00
|
|
|
when: ansible_os_family == "CoreOS"
|
2016-09-27 09:54:12 +00:00
|
|
|
|
2016-12-07 15:57:05 +00:00
|
|
|
- name: Preinstall | reload resolvconf
|
2016-08-29 14:39:55 +00:00
|
|
|
command: /sbin/resolvconf -u
|
|
|
|
ignore_errors: true
|
2016-09-27 09:54:12 +00:00
|
|
|
|
2016-12-07 15:57:05 +00:00
|
|
|
- name: Preinstall | apply resolvconf cloud-init
|
2016-11-23 14:49:10 +00:00
|
|
|
command: /usr/bin/coreos-cloudinit --from-file {{ resolveconf_cloud_init_conf }}
|
|
|
|
when: ansible_os_family == "CoreOS"
|
|
|
|
|
2016-12-07 15:57:05 +00:00
|
|
|
- name: Preinstall | reload kubelet
|
2016-09-27 09:54:12 +00:00
|
|
|
service:
|
|
|
|
name: kubelet
|
|
|
|
state: restarted
|
2016-12-07 15:57:05 +00:00
|
|
|
when: "{{ inventory_hostname in groups['kube-master'] and not dns_early|bool }}"
|