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)
---
+- 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: