mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-14 05:45:06 +03:00
* Adding the var: leave_etc_backup_files * Fix for #11936 - backup: "{{ leave_etc_backup_files }}"
19 lines
602 B
YAML
19 lines
602 B
YAML
---
|
|
|
|
# These tasks will undo changes done by kubespray in the past if needed (e.g. when upgrading from kubespray 2.0.x
|
|
# or when changing resolvconf_mode)
|
|
|
|
- name: Remove kubespray specific config from dhclient config
|
|
blockinfile:
|
|
path: "{{ dhclientconffile }}"
|
|
state: absent
|
|
backup: "{{ leave_etc_backup_files }}"
|
|
marker: "# Ansible entries {mark}"
|
|
notify: Preinstall | propagate resolvconf to k8s components
|
|
|
|
- name: Remove kubespray specific dhclient hook
|
|
file:
|
|
path: "{{ dhclienthookfile }}"
|
|
state: absent
|
|
notify: Preinstall | propagate resolvconf to k8s components
|