uninstall_iam_cert.yml 630 B

12345678910111213141516171819202122232425
  1. ---
  2. - when:
  3. - openshift_aws_create_iam_cert | bool
  4. - openshift_aws_iam_cert_path != ''
  5. - openshift_aws_iam_cert_key_path != ''
  6. - openshift_aws_elb_cert_arn == ''
  7. block:
  8. - name: delete AWS IAM certificates
  9. iam_cert:
  10. state: absent
  11. name: "{{ openshift_aws_iam_cert_name }}"
  12. register: elb_cert_chain
  13. retries: 20
  14. delay: 10
  15. until: elb_cert_chain is succeeded
  16. ignore_errors: yes
  17. - debug:
  18. var: elb_cert_chain
  19. verbosity: 1
  20. - name: check for iam cert error
  21. fail:
  22. msg: "Couldn't delete IAM cert {{ openshift_aws_iam_cert_name }}"
  23. when: elb_cert_chain is failed