mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 19:30:39 -03:30
add variables to inventory mentioned in docs
* Also better error message when openshift cert failure
This commit is contained in:
parent
617d6a8cf4
commit
ceedc135b2
@ -14,6 +14,8 @@ dockerhub_version=latest
|
||||
# openshift_host=127.0.0.1:8443
|
||||
# openshift_project=awx
|
||||
# openshift_user=developer
|
||||
# openshift_skip_tls_verify=False
|
||||
# openshift_pg_emptydir=True
|
||||
|
||||
# Kubernetes Install
|
||||
# kubernetes_context=test-cluster
|
||||
|
||||
@ -23,8 +23,23 @@
|
||||
- openshift_user is defined
|
||||
- openshift_password is defined
|
||||
- openshift_token is not defined
|
||||
register: openshift_auth_result
|
||||
ignore_errors: true
|
||||
no_log: true
|
||||
|
||||
- name: OpenShift authentication failed on TLS verification
|
||||
fail:
|
||||
msg: "Failed to verify TLS, consider settings openshift_skip_tls_verify=True {{ openshift_auth_result.stderr }}"
|
||||
when:
|
||||
- openshift_skip_tls_verify is not defined or not openshift_skip_tls_verify
|
||||
- openshift_auth_result.rc != 0
|
||||
- openshift_auth_result.stderr | search("certificate that does not match its hostname")
|
||||
|
||||
- name: OpenShift authentication failed
|
||||
fail:
|
||||
msg: "{{ openshift_auth_result.stderr }}"
|
||||
when: openshift_auth_result.rc != 0
|
||||
|
||||
- name: Authenticate with OpenShift via token
|
||||
shell: |
|
||||
{{ openshift_oc_bin }} login {{ openshift_host }} \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user