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

Need to use separate stanzas for each repo because the
This commit is contained in:
Smaine Kahlouch 2016-01-25 19:00:57 +01:00
commit 359e55f6e4

View file

@ -33,11 +33,13 @@
always_run: True always_run: True
tags: always tags: always
- name: Update package management cache - name: Update package management cache (APT)
action: apt: update_cache=yes
module: "{{ ansible_pkg_mgr }}" when: ansible_pkg_mgr == 'apt'
update_cache: yes
when: ansible_pkg_mgr in ['apt', 'yum'] - name: Update package management cache (YUM)
yum: update_cache=yes name='*'
when: ansible_pkg_mgr == 'yum'
- name: Install python-apt for Debian distribs - name: Install python-apt for Debian distribs
shell: apt-get install -y python-apt shell: apt-get install -y python-apt