ceph-common: update apt cache in it's own task

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
(cherry picked from commit 7dc9c4b5b6)
pull/1259/head
Andrew Schoen 2017-01-30 17:15:08 -06:00
parent 7277a553fa
commit 9e6da6c45d
1 changed files with 5 additions and 1 deletions

View File

@ -11,10 +11,14 @@
include: debian_ceph_repository.yml include: debian_ceph_repository.yml
when: ceph_origin == 'upstream' when: ceph_origin == 'upstream'
- name: update apt cache
apt:
update_cache: yes
- name: install ceph - name: install ceph
apt: apt:
name: "{{ item }}" name: "{{ item }}"
update_cache: yes update_cache: no
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}" state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
default_release: "{{ ceph_stable_release_uca | default(ansible_distribution_release) }}{{ '-backports' if ceph_origin == 'distro' and ceph_use_distro_backports else ''}}" default_release: "{{ ceph_stable_release_uca | default(ansible_distribution_release) }}{{ '-backports' if ceph_origin == 'distro' and ceph_use_distro_backports else ''}}"
with_items: "{{ debian_ceph_packages }}" with_items: "{{ debian_ceph_packages }}"