Files
dsk-iac/kubespray/extra_playbooks/roles/kubernetes/preinstall/tasks/0110-dhclient-hooks-undo.yml
havelight-ee 4c32a7239d update
2023-05-30 14:44:26 +09:00

19 lines
575 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: yes
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