]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
ceph-infra: update cache for Ubuntu
authorRishabh Dave <ridave@redhat.com>
Thu, 13 Jun 2019 08:06:00 +0000 (13:36 +0530)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Thu, 13 Jun 2019 18:50:19 +0000 (14:50 -0400)
Ubuntu-based CI jobs often fail with error code 404 while installing
NTP daemons. Updating cache beforehand should fix the issue.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit d1c266e6c7f9906f6455e71583496c4d902b8565)

roles/ceph-infra/tasks/main.yml

index bbd3a84de77bc8d35779edc0bfcab5dbd27829e9..18d8aaf9743b08dc0d0f518f085d9b54561e8436 100644 (file)
@@ -1,4 +1,11 @@
 ---
+- name: update cache for Debian based OSs
+  apt:
+    update_cache: yes
+  when: ansible_os_family == "Debian"
+  register: result
+  until: result is succeeded
+
 - name: include_tasks configure_firewall.yml
   include_tasks: configure_firewall.yml
   when: