From 727340cd31e205091d9e0e89d7dff68190db962d Mon Sep 17 00:00:00 2001 From: nazunalika Date: Sat, 19 Dec 2020 18:45:49 -0700 Subject: [PATCH] add rescue block --- tasks/main.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tasks/main.yml b/tasks/main.yml index b121f58..d25a94b 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -77,5 +77,9 @@ when: - ipa_getcert_chain - ipa_cert_request.rc == 0 + rescue: + - name: "Erroring out with message" + debug: + msg: "We caught an error, likely with the ipa-getcert script. Please verify the output." when: - ipacheck.rc == 0