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.

25 lines
785 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. dest: "{{dhclientconffile}}"
  7. state: absent
  8. backup: yes
  9. follow: yes
  10. marker: "# Ansible entries {mark}"
  11. when: dhclientconffile is defined
  12. notify: Preinstall | restart network
  13. - name: Remove kubespray specific dhclient hook
  14. file:
  15. path: "{{ dhclienthookfile }}"
  16. state: absent
  17. when: dhclienthookfile is defined
  18. notify: Preinstall | restart network
  19. # We need to make sure the network is restarted early enough so that docker can later pick up the correct system
  20. # nameservers and search domains
  21. - meta: flush_handlers