- 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 }}'''