|
|
@ -3,10 +3,6 @@ |
|
|
|
# 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: Check if dhclient conf file exists |
|
|
|
stat: path={{dhclientconffile}} |
|
|
|
register: dhclientconf_check |
|
|
|
|
|
|
|
- name: Remove kargo specific config from dhclient config |
|
|
|
blockinfile: |
|
|
|
dest: "{{dhclientconffile}}" |
|
|
@ -14,7 +10,7 @@ |
|
|
|
backup: yes |
|
|
|
follow: yes |
|
|
|
marker: "# Ansible entries {mark}" |
|
|
|
when: dhclientconf_check.stat.exists |
|
|
|
when: dhclientconffile is defined |
|
|
|
notify: Preinstall | restart network |
|
|
|
|
|
|
|
- name: Remove kargo specific dhclient hook |
|
|
|