mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-14 22:04:43 +03:00
Merge pull request #98 from ansibl8s/setup_cache
Use update_cache when possible
This commit is contained in:
@@ -33,6 +33,12 @@
|
||||
always_run: True
|
||||
tags: always
|
||||
|
||||
- name: Update package management cache
|
||||
action:
|
||||
module: "{{ ansible_pkg_mgr }}"
|
||||
update_cache: yes
|
||||
when: ansible_pkg_mgr in ['apt', 'yum']
|
||||
|
||||
- name: Install python-apt for Debian distribs
|
||||
shell: apt-get install -y python-apt
|
||||
when: ansible_os_family == "Debian"
|
||||
|
||||
Reference in New Issue
Block a user