You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
647 B

  1. ---
  2. # These tasks will undo changes done by kubespray in the past if needed (e.g. when upgrading from kubespray 2.0.x
  3. # or when changing resolvconf_mode)
  4. - name: Remove kubespray specific config from dhclient config
  5. blockinfile:
  6. path: "{{ dhclientconffile }}"
  7. state: absent
  8. backup: yes
  9. marker: "# Ansible entries {mark}"
  10. when: dhclientconffile is defined
  11. notify: Preinstall | propagate resolvconf to k8s components
  12. - name: Remove kubespray specific dhclient hook
  13. file:
  14. path: "{{ dhclienthookfile }}"
  15. state: absent
  16. when: dhclienthookfile is defined
  17. notify: Preinstall | propagate resolvconf to k8s components