Hello!

Is there a similar functionality to $? in many script languages in ansible?

I'd like to do something like this without having to register a
variable after all commandS:


- shell: <do something>
  changed_when: $?.rc != 128

Regards,
  Akos Vandra

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAHHcNofo__3G1UDhKC1ueVs0DbBXFjGQrehnZK1%2B%2ByX6WZ1vjg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to