I have two Plays having one task each.
The first Play 1 checks if the/var/test.dat
exists 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 terminate the entire playbook without the Play 2 getting executed.
For this purpose, I have set any_errors_fatal
set to true
I need to have an ansible Play strategy
set to free as each of the scripts takes 30 minutes to complete hence running them in parallel is the requirement.
My understanding of ansible is limited.
I understand that if I have both the tasks under a single Play and set the strategy to free both the tasks will run in parallel which is something I do not want.
`