diff --git a/roles/kubernetes/preinstall/tasks/main.yml b/roles/kubernetes/preinstall/tasks/main.yml index 72efa116a..f4ca440a9 100644 --- a/roles/kubernetes/preinstall/tasks/main.yml +++ b/roles/kubernetes/preinstall/tasks/main.yml @@ -45,6 +45,7 @@ action: module: "{{ ansible_pkg_mgr }}" name: "{{ item }}" + update_cache: yes state: latest with_items: "{{required_pkgs | union(common_required_pkgs)}}"