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