i want to save the output of a command in a file , i tried to use :
- command: ./script1 >> file.txt 2>&1 but it's give me an empty file. Is there any other method to save the output of my "script1" in a "file" using ansible 2.0.2 . thank you in advance .