This confusion is probably due to me not being a python programmer. So, for any other non-python users, hopefully this thread will be helpful.
Re:
http://ansibleworks.com/docs/playbooks_variables.html#registered-variables
We see a variable registered:
register: foo_result
But then when it's used, we see:
when: foo_result.rc == 5
This probably makes perfect sense to python guys, but as a rubyist, I had no idea what was going on here. Googling "python rc" etc was also fruitless.
So, after a quick twitter conversation with Michael DeHaan, it sounds like for any registered variables, you have to append either ".rc" or ".stdout" to the variable in order to use the registered variable. Is that true for all cases, or just for when it's used as a conditional like in the example?
Thanks!
Matt
P.S. Despite further googling, finding any useful documentation on Python's "rc" method is proving elusive. Is there some canonical Python reference where I should look?