add rescue block

This commit is contained in:
nazunalika 2020-12-19 18:45:49 -07:00
parent baa38c2f5c
commit 727340cd31
1 changed files with 4 additions and 0 deletions

View File

@ -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