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