From 8948abae9a1a68d3fb1e2537390b6f52bae48cd6 Mon Sep 17 00:00:00 2001 From: Marc Gariepy Date: Thu, 4 Mar 2021 14:53:28 -0500 Subject: [PATCH] Fix Remove revoked ceph apt-keys when running the playbook it does appens that the apt_key task fails. let's retry in case of failure to mimic the apt-key add that runs later. Change-Id: Ie745496f515af1461bb8d03ba6b5c7cac5e71150 --- tasks/ceph_preinstall_apt.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tasks/ceph_preinstall_apt.yml b/tasks/ceph_preinstall_apt.yml index c9faa98..5927e39 100644 --- a/tasks/ceph_preinstall_apt.yml +++ b/tasks/ceph_preinstall_apt.yml @@ -19,6 +19,8 @@ state: "absent" register: revoke_keys with_items: "{{ ceph_revoked_gpg_keys }}" + retries: 5 + delay: 2 when: - ceph_pkg_source == 'ceph'