Hi all,
I am fairly new to ansible but have been googling around for the answer to this and just cannot find anything that matches my request. So I wonder if you can assist please??
Basically I have a very long playbook to build an environment and set permissions etc etc etc and I have been instructed that at the very beginning of the PB I need to set a condition that IF a certain directory already contains files (any files at all) then the PB should exit, else it should continue with the rest of the installation and other bits.
How on earth do I do that sort of thing?? I just cannot see a module that helps me apart from it something that checks that the directory exists which is not what I want.
Thanks for any constructive input.