From: Rishabh Dave Date: Thu, 13 Jun 2019 08:06:00 +0000 (+0530) Subject: ceph-infra: update cache for Ubuntu X-Git-Tag: v5.0.0alpha1~274 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d1c266e6c7f9906f6455e71583496c4d902b8565;p=ceph-ansible.git 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 --- 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: