Update apt cache as for prerequisites as well
The task kubernetes/preinstall : Install packages requirements shall not fail Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
This commit is contained in:
parent
9777b3c177
commit
705400460a
1 changed files with 5 additions and 1 deletions
|
@ -68,8 +68,12 @@
|
|||
yum: update_cache=yes name='*'
|
||||
when: ansible_pkg_mgr == 'yum'
|
||||
|
||||
- name: Update package management cache (APT)
|
||||
apt: update_cache=yes name='*' cache_valid_time=3600
|
||||
when: ansible_pkg_mgr == 'apt'
|
||||
|
||||
- name: Install latest version of python-apt for Debian distribs
|
||||
apt: name=python-apt state=latest update_cache=yes cache_valid_time=3600
|
||||
apt: name=python-apt state=latest
|
||||
when: ansible_os_family == "Debian"
|
||||
|
||||
- name: Install python-dnf for latest RedHat versions
|
||||
|
|
Loading…
Reference in a new issue