Skip to content

Commit

Permalink
Improve fail message
Browse files Browse the repository at this point in the history
Co-authored-by: Scott Davidson <[email protected]>
  • Loading branch information
sjpb and sd109 authored Nov 29, 2023
1 parent 83fbe67 commit 251409b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ansible/roles/passwords/tasks/validate.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
- name: Assert secrets created
assert:
that: (hostvars[inventory_hostname].keys() | select('contains', 'vault_') | length) > 1 # 1 as may have vault_testuser_password defined in dev
fail_msg: "No inventory variables 'vault_*' found: Has ansible/adhoc/generate-passwords.yml been run"
fail_msg: "No inventory variables 'vault_*' found: Has ansible/adhoc/generate-passwords.yml been run?"

0 comments on commit 251409b

Please sign in to comment.