[ansible-project] Abort executing playbook if condition not match

2017-02-14 Thread bablu
If condition fails it should not go for the next step and exit from there only. In following situation, when: C != test_valit should exit from here only instead of going to the next step. How can i achieve this. - name: Set the output of the this state set_fact: A="{{image_avl

Re: [ansible-project] Abort executing playbook if condition not match

2017-02-14 Thread Kai Stian Olstad
On 14. feb. 2017 17:43, bablu wrote: If condition fails it should not go for the next step and exit from there only. In following situation, when: C != test_valit should exit from here only instead of going to the next step. How can i achieve this. - name: Set the output of the this

Re: [ansible-project] Abort executing playbook if condition not match

2017-02-14 Thread DHAVAL JAISWAL
I tried with fail and it works. Is this works when we set any_errors_fatal: true On Tue, Feb 14, 2017 at 10:25 PM, Kai Stian Olstad < ansible-project+l...@olstad.com> wrote: > On 14. feb. 2017 17:43, bablu wrote: > >> >> If condition fails it should not go for the next step and exit from ther