In example like this shouldn't it not fail but set the right variable field so you can test that field in register: variable_name - when: variable_name.install == true or something?