"If you want to execute a command securely and predictably, it may be
better to use the command module instead. Best practices when writing
playbooks will follow the trend of using command unless the shell module is
explicitly required..."
"If you want to run a command through the shell (say you are using <, >, |,
etc), you actually want the shell module instead. Parsing shell
metacharacters can lead to unexpected commands being executed if quoting is
not done correctly so it is more secure to use the command module when
possible."
Thank you for your answer. So basically I need to run 2 tasks BUT
If I have a list of folders that needs to be created and i will use with_items - As I know, the first task will run on all folders and the MSG task will only verify the register of the last folder.
Basically what I’m askingת is there a way to run 2 tasks (one by one) on the same item and not running each task in parallel for all items