Browse Source

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
pull/1834/head
pmontanari 7 years ago
committed by Matthew Mosesohn
parent
commit
20d80311f0
1 changed files with 8 additions and 8 deletions
  1. 16
      roles/kubernetes/preinstall/tasks/main.yml

16
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'

Loading…
Cancel
Save