Browse Source

Use update_cache when possible

pull/98/head
ant31 8 years ago
parent
commit
f5508b1794
1 changed files with 6 additions and 0 deletions
  1. 6
      roles/kubernetes/preinstall/tasks/main.yml

6
roles/kubernetes/preinstall/tasks/main.yml

@ -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"

Loading…
Cancel
Save