diff --git a/roles/kubernetes/preinstall/tasks/main.yml b/roles/kubernetes/preinstall/tasks/main.yml index 2b49b184d..1cbf55b78 100644 --- a/roles/kubernetes/preinstall/tasks/main.yml +++ b/roles/kubernetes/preinstall/tasks/main.yml @@ -97,6 +97,14 @@ - canal - bootstrap-os +- include: resolvconf.yml + when: + - dns_mode != 'none' + - resolvconf_mode == 'host_resolvconf' + tags: + - bootstrap-os + - resolvconf + - name: Update package management cache (YUM) yum: update_cache: yes @@ -249,14 +257,6 @@ - bootstrap-os - etchosts -- include: resolvconf.yml - when: - - dns_mode != 'none' - - resolvconf_mode == 'host_resolvconf' - tags: - - bootstrap-os - - resolvconf - - include: dhclient-hooks.yml when: - dns_mode != 'none'