2017-01-11 14:08:24 +00:00
|
|
|
---
|
|
|
|
|
2017-06-16 17:25:46 +00:00
|
|
|
# These tasks will undo changes done by kubespray in the past if needed (e.g. when upgrading from kubespray 2.0.x
|
2017-01-11 14:08:24 +00:00
|
|
|
# or when changing resolvconf_mode)
|
|
|
|
|
2017-06-16 17:25:46 +00:00
|
|
|
- name: Remove kubespray specific config from dhclient config
|
2017-01-11 14:08:24 +00:00
|
|
|
blockinfile:
|
|
|
|
dest: "{{dhclientconffile}}"
|
|
|
|
state: absent
|
|
|
|
backup: yes
|
|
|
|
follow: yes
|
|
|
|
marker: "# Ansible entries {mark}"
|
2017-01-13 16:14:57 +00:00
|
|
|
when: dhclientconffile is defined
|
2017-01-11 14:08:24 +00:00
|
|
|
notify: Preinstall | restart network
|
|
|
|
|
2017-06-16 17:25:46 +00:00
|
|
|
- name: Remove kubespray specific dhclient hook
|
2017-02-17 21:22:34 +00:00
|
|
|
file:
|
|
|
|
path: "{{ dhclienthookfile }}"
|
|
|
|
state: absent
|
2017-01-13 07:42:24 +00:00
|
|
|
when: dhclienthookfile is defined
|
2017-01-11 14:08:24 +00:00
|
|
|
notify: Preinstall | restart network
|
|
|
|
|
|
|
|
# We need to make sure the network is restarted early enough so that docker can later pick up the correct system
|
|
|
|
# nameservers and search domains
|
|
|
|
- meta: flush_handlers
|