From 7dc9c4b5b683a0d870a0b4401f99dfa30071350b Mon Sep 17 00:00:00 2001 From: Andrew Schoen Date: Mon, 30 Jan 2017 17:15:08 -0600 Subject: [PATCH] ceph-common: update apt cache in it's own task Signed-off-by: Andrew Schoen --- roles/ceph-common/tasks/installs/install_on_debian.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 }}" -- 2.39.5