On 05.09.2019 16:16, Cade Lambert wrote:
   until: promote_rhel7.json.result == 'success'
   retries: 10
   delay: 20


I tried this but it error'd out with:

fatal: [localhost]: FAILED! => {"msg": "The conditional check
'promote_rhel7.json.result == 'success'' failed. The error was: error while
evaluating conditional (promote_rhel7.json.result == 'success'): 'dict
object' has no attribute 'result'"}

I don't know anything about the api you are using so I can't comment on that, but this type of error can be solved by checking if the variable is defined first.

until: promote_rhel7.json.result is defined and promote_rhel7.json.result == 'success'



--
Kai Stian Olstad

--
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/13df56064f57d23b942cfdf5253acaec%40olstad.com.

Reply via email to