kubespray/roles/kubernetes/preinstall/tasks/0110-dhclient-hooks-undo.yml

22 lines
615 B
YAML
Raw Normal View History

---
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
# or when changing resolvconf_mode)
2017-06-17 01:25:46 +08:00
- name: Remove kubespray specific config from dhclient config
blockinfile:
dest: "{{dhclientconffile}}"
state: absent
backup: yes
follow: yes
marker: "# Ansible entries {mark}"
when: dhclientconffile is defined
notify: Preinstall | restart network
2017-06-17 01:25:46 +08:00
- name: Remove kubespray specific dhclient hook
file:
path: "{{ dhclienthookfile }}"
state: absent
when: dhclienthookfile is defined
notify: Preinstall | restart network