]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
ceph-common: update apt cache in it's own task 1254/head
authorAndrew Schoen <aschoen@redhat.com>
Mon, 30 Jan 2017 23:15:08 +0000 (17:15 -0600)
committerAndrew Schoen <aschoen@redhat.com>
Mon, 30 Jan 2017 23:15:08 +0000 (17:15 -0600)
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
roles/ceph-common/tasks/installs/install_on_debian.yml

index a1e5f7c487ba1ebfbbd79584c70ba61d12ec74a0..0f8648216be9f00481a43acf48be1af74319c352 100644 (file)
   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 }}"