Files
ansible-mail-infra/ansible/roles/10-include-40-check-if-vault-var/tasks/40-check-vault-var.yml

8 lines
343 B
YAML

- 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 ''os/{{ reset_password_for_account }}/creds'''