Passing condition to "failed_when" as a variable

@Openuser87 welcome to the Ansible Forum!
If you could copy in more of your playbook that would help.

Welcome to the Ansible Forum, let’s continue the discussion in