mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-08 02:58:29 +03:00
Update main.yml (#1822)
* Update main.yml Needs to set up resolv.conf before updating Yum cache otherwise no name resolution available (resolv.conf empty). * Update main.yml Removing trailing spaces
This commit is contained in:
committed by
Matthew Mosesohn
parent
f1a1f53f72
commit
20d80311f0
@@ -97,6 +97,14 @@
|
|||||||
- canal
|
- canal
|
||||||
- bootstrap-os
|
- bootstrap-os
|
||||||
|
|
||||||
|
- include: resolvconf.yml
|
||||||
|
when:
|
||||||
|
- dns_mode != 'none'
|
||||||
|
- resolvconf_mode == 'host_resolvconf'
|
||||||
|
tags:
|
||||||
|
- bootstrap-os
|
||||||
|
- resolvconf
|
||||||
|
|
||||||
- name: Update package management cache (YUM)
|
- name: Update package management cache (YUM)
|
||||||
yum:
|
yum:
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
@@ -249,14 +257,6 @@
|
|||||||
- bootstrap-os
|
- bootstrap-os
|
||||||
- etchosts
|
- etchosts
|
||||||
|
|
||||||
- include: resolvconf.yml
|
|
||||||
when:
|
|
||||||
- dns_mode != 'none'
|
|
||||||
- resolvconf_mode == 'host_resolvconf'
|
|
||||||
tags:
|
|
||||||
- bootstrap-os
|
|
||||||
- resolvconf
|
|
||||||
|
|
||||||
- include: dhclient-hooks.yml
|
- include: dhclient-hooks.yml
|
||||||
when:
|
when:
|
||||||
- dns_mode != 'none'
|
- dns_mode != 'none'
|
||||||
|
|||||||
Reference in New Issue
Block a user