2017-01-11 22:08:24 +08:00
|
|
|
---
|
|
|
|
|
2017-06-17 01:25:46 +08: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 22:08:24 +08:00
|
|
|
# or when changing resolvconf_mode)
|
|
|
|
|
2017-06-17 01:25:46 +08:00
|
|
|
- name: Remove kubespray specific config from dhclient config
|
2017-01-11 22:08:24 +08:00
|
|
|
blockinfile:
|
2019-05-03 05:24:21 +08:00
|
|
|
path: "{{ dhclientconffile }}"
|
2017-01-11 22:08:24 +08:00
|
|
|
state: absent
|
|
|
|
backup: yes
|
|
|
|
marker: "# Ansible entries {mark}"
|
2017-01-14 00:14:57 +08:00
|
|
|
when: dhclientconffile is defined
|
2017-01-11 22:08:24 +08:00
|
|
|
notify: Preinstall | restart network
|
|
|
|
|
2017-06-17 01:25:46 +08:00
|
|
|
- name: Remove kubespray specific dhclient hook
|
2017-02-18 05:22:34 +08:00
|
|
|
file:
|
|
|
|
path: "{{ dhclienthookfile }}"
|
|
|
|
state: absent
|
2017-01-13 15:42:24 +08:00
|
|
|
when: dhclienthookfile is defined
|
2017-01-11 22:08:24 +08:00
|
|
|
notify: Preinstall | restart network
|