diff options
author | Kenny Woodson <kwoodson@redhat.com> | 2017-08-30 17:47:48 -0400 |
---|---|---|
committer | Kenny Woodson <kwoodson@redhat.com> | 2017-09-07 14:41:24 -0400 |
commit | efe86b44bce679db38cca654818dc3837bb05f6a (patch) | |
tree | 3bf6d09a2906aea8784073aece30ec22b82788f2 /roles/openshift_aws/tasks/iam_cert.yml | |
parent | 63ecca817c45242f3db0495d99b947ba0471789e (diff) | |
download | openshift-efe86b44bce679db38cca654818dc3837bb05f6a.tar.gz openshift-efe86b44bce679db38cca654818dc3837bb05f6a.tar.bz2 openshift-efe86b44bce679db38cca654818dc3837bb05f6a.tar.xz openshift-efe86b44bce679db38cca654818dc3837bb05f6a.zip |
Consolidating AWS roles and variables underneath openshift_aws role.
Diffstat (limited to 'roles/openshift_aws/tasks/iam_cert.yml')
-rw-r--r-- | roles/openshift_aws/tasks/iam_cert.yml | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/roles/openshift_aws/tasks/iam_cert.yml b/roles/openshift_aws/tasks/iam_cert.yml new file mode 100644 index 000000000..cd9772a25 --- /dev/null +++ b/roles/openshift_aws/tasks/iam_cert.yml @@ -0,0 +1,29 @@ +--- +- name: upload certificates to AWS IAM + iam_cert23: + state: present + name: "{{ openshift_aws_iam_cert_name }}" + cert: "{{ openshift_aws_iam_cert_path }}" + key: "{{ openshift_aws_iam_cert_key_path }}" + cert_chain: "{{ openshift_aws_iam_cert_chain_path | default(omit) }}" + register: elb_cert_chain + failed_when: + - "'failed' in elb_cert_chain" + - elb_cert_chain.failed + - "'msg' in elb_cert_chain" + - "'already exists and has a different certificate body' in elb_cert_chain.msg" + - "'BotoServerError' in elb_cert_chain.msg" + when: + - openshift_aws_create_iam_cert | bool + - openshift_aws_iam_cert_path != '' + - openshift_aws_iam_cert_key_path != '' + - openshift_aws_elb_cert_arn == '' + +- name: set_fact openshift_aws_elb_cert_arn + set_fact: + openshift_aws_elb_cert_arn: "{{ elb_cert_chain.arn }}" + +- name: wait for cert to propagate + pause: + seconds: 5 + when: elb_cert_chain.changed |