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 }}"