I need to a run two ansible command in a single line. While am running the command its taking only the second command .
ansible -i list cdlk -a "touch /tmp/a" -a "touch /tmp/b" --private-key=/tmp/id_rsa
I have create a file called list and after running this command only /tmp/b file is getting created .How I can run multiple commands in single line?
-a "touch /tmp/a; touch /tmp/b"?