diff --git a/roles/kubernetes/preinstall/tasks/main.yml b/roles/kubernetes/preinstall/tasks/main.yml index 95cd134ce..5c8c99c15 100644 --- a/roles/kubernetes/preinstall/tasks/main.yml +++ b/roles/kubernetes/preinstall/tasks/main.yml @@ -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