]> 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)
committerGuillaume Abrioux <gabrioux@redhat.com>
Thu, 13 Jun 2019 12:00:29 +0000 (14:00 +0200)
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>
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: