Skip to content

Commit

Permalink
Merge pull request #15 from sebastian-luna-valero/token-fail
Browse files Browse the repository at this point in the history
Fail if no access token is available
  • Loading branch information
micafer authored Sep 16, 2024
2 parents dc01ab0 + 0e2772e commit 3cb22b3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,13 @@
OIDC_ACCESS_TOKEN: "{{ ACCESS_TOKEN }}"
when: ACCESS_TOKEN is defined

- name: Fail if OIDC_ACCESS_TOKEN is not set
ansible.builtin.fail:
msg: An OIDC access token is required to configure motley-cue with contextualise_ssh_server
when: OIDC_ACCESS_TOKEN is not defined
tags:
- molecule-notest

- name: Execute contextualise_ssh_server command
command: contextualise_ssh_server {{OIDC_ACCESS_TOKEN}}
args:
Expand Down

0 comments on commit 3cb22b3

Please sign in to comment.