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.

23 lines
759 B

  1. ---
  2. # These tasks will undo changes done by kargo in the past if needed (e.g. when upgrading from kargo 2.0.x
  3. # or when changing resolvconf_mode)
  4. - name: Remove kargo 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 kargo specific dhclient hook
  14. file: path="{{ dhclienthookfile }}" state=absent
  15. when: dhclienthookfile is defined
  16. notify: Preinstall | restart network
  17. # We need to make sure the network is restarted early enough so that docker can later pick up the correct system
  18. # nameservers and search domains
  19. - meta: flush_handlers