Browse Source

Merge pull request #100 from rackn/cache-update-centos

Need to use separate stanzas for each repo because the
pull/103/head
Smaine Kahlouch 8 years ago
parent
commit
359e55f6e4
1 changed files with 7 additions and 5 deletions
  1. 12
      roles/kubernetes/preinstall/tasks/main.yml

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

@ -33,11 +33,13 @@
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: Update package management cache (APT)
apt: update_cache=yes
when: ansible_pkg_mgr == 'apt'
- name: Update package management cache (YUM)
yum: update_cache=yes name='*'
when: ansible_pkg_mgr == 'yum'
- name: Install python-apt for Debian distribs
shell: apt-get install -y python-apt

Loading…
Cancel
Save