From 34e3b3f0e49c458e4b12320765006f807cab1ef1 Mon Sep 17 00:00:00 2001 From: Rishabh Dave Date: Thu, 13 Jun 2019 13:36:00 +0530 Subject: [PATCH] ceph-infra: update cache for Ubuntu 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 (cherry picked from commit d1c266e6c7f9906f6455e71583496c4d902b8565) --- roles/ceph-infra/tasks/main.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/roles/ceph-infra/tasks/main.yml b/roles/ceph-infra/tasks/main.yml index bbd3a84de..18d8aaf97 100644 --- a/roles/ceph-infra/tasks/main.yml +++ b/roles/ceph-infra/tasks/main.yml @@ -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: