From: Andrew Schoen Date: Mon, 30 Jan 2017 23:15:08 +0000 (-0600) Subject: ceph-common: update apt cache in it's own task X-Git-Tag: v2.2.0rc1~50^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=7dc9c4b5b683a0d870a0b4401f99dfa30071350b;p=ceph-ansible.git ceph-common: update apt cache in it's own task Signed-off-by: Andrew Schoen --- diff --git a/roles/ceph-common/tasks/installs/install_on_debian.yml b/roles/ceph-common/tasks/installs/install_on_debian.yml index a1e5f7c48..0f8648216 100644 --- a/roles/ceph-common/tasks/installs/install_on_debian.yml +++ b/roles/ceph-common/tasks/installs/install_on_debian.yml @@ -11,10 +11,14 @@ include: debian_ceph_repository.yml when: ceph_origin == 'upstream' +- name: update apt cache + apt: + update_cache: yes + - name: install ceph apt: name: "{{ item }}" - update_cache: yes + update_cache: no 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 ''}}" with_items: "{{ debian_ceph_packages }}"