2017-01-11 22:08:24 +08:00
|
|
|
---
|
|
|
|
|
|
|
|
# These tasks will undo changes done by kargo in the past if needed (e.g. when upgrading from kargo 2.0.x
|
|
|
|
# or when changing resolvconf_mode)
|
|
|
|
|
|
|
|
- name: Remove kargo specific config from dhclient config
|
|
|
|
blockinfile:
|
|
|
|
dest: "{{dhclientconffile}}"
|
|
|
|
state: absent
|
|
|
|
backup: yes
|
|
|
|
follow: yes
|
|
|
|
marker: "# Ansible entries {mark}"
|
2017-01-14 00:14:57 +08:00
|
|
|
when: dhclientconffile is defined
|
2017-01-11 22:08:24 +08:00
|
|
|
notify: Preinstall | restart network
|
|
|
|
|
|
|
|
- name: Remove kargo specific dhclient hook
|
|
|
|
file: path="{{ dhclienthookfile }}" state=absent
|
2017-01-13 15:42:24 +08:00
|
|
|
when: dhclienthookfile is defined
|
2017-01-11 22:08:24 +08:00
|
|
|
notify: Preinstall | restart network
|
|
|
|
|
|
|
|
# We need to make sure the network is restarted early enough so that docker can later pick up the correct system
|
|
|
|
# nameservers and search domains
|
|
|
|
- meta: flush_handlers
|