-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add block and task to revoke Openshift token in aap_ocp_install role (#…
…194) * Add block and task to revoke Openshift token * Add new line at the end of file
- Loading branch information
Showing
2 changed files
with
53 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
- name: "If login succeeded revoke OpenShift API token" | ||
when: __aap_ocp_install_auth_results['openshift_auth']['api_key'] is defined | ||
# Disabling check for FQCN on module names as using either community.okd or redhat.openshift collection is able to be used | ||
openshift_auth: # noqa fqcn[action] | ||
host: "{{ aap_ocp_install_connection['host'] | mandatory }}" | ||
validate_certs: "{{ aap_ocp_install_connection['validate_certs'] | default(omit) }}" | ||
state: absent | ||
api_key: "{{ __aap_ocp_install_auth_results['openshift_auth']['api_key'] }}" | ||
changed_when: false | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters