role_include_vault-check/tasks/40-check-vault-var.yml

8 lines
324 B
YAML
Raw Normal View History

2022-07-23 19:32:17 +02:00
- name: 'If a secret is missing: Fail progress'
failed_when: inc_fail_check not in inc_vault_data
loop_control:
loop_var: 'inc_fail_check'
loop: '{{ fail_check }}'
debug:
msg: 'Vault has {% if inc_fail_check not in inc_vault_data %}no {% endif %}secret ''{{ inc_fail_check }}'' at ''{{ vault_base_path }}'''