Re: [ansible-project] How to execute Play 2 only if Play 1 succeeds

2020-03-29 Thread Dick Visser
It works if you do it in a single play. Why are you using two different plays anyway? On Sun, 29 Mar 2020 at 13:00, Shifa Shaikh wrote: > I have two Plays having one task each. > > > The first Play 1 checks if the/var/test.datexists on each target host. > > > Only if the Play 1 is successful

[ansible-project] How to execute Play 2 only if Play 1 succeeds

2020-03-29 Thread Shifa Shaikh
I have two Plays having one task each. The first Play 1 checks if the/var/test.datexists on each target host. Only if the Play 1 is successful do I want the second play Play 2 to run which executes scripts in parallel. If Play 1 fails i.e if the test.dat does not exist I wish to