Quoting balubhai555 (
balub...@gmail.com):
> I want to clone the git repository using ansible Cron module.
So why not create a playbook that does this and run it from cron? ;)
> *The below cron job is not working for git clone*.
Drop the double quotes.
Also, a filename seems to be missing in your stdout redirection.
$ sudo "git help"
sudo: git help: command not found
$ sudo git help
usage: git [--version] [--help] [-C <path>] [-c name=value]
[..]
> But for sample
> job: 'sudo echo " heloworld " > /home/ec2-user/hello.txt'
> It is working fine.
Notice 'echo' is not in the double quotes.
-Sndr.
--
| A ship shipping ship shipping shipping ships!
| 4096R/20CC6CD2 - 6D40 1A20 B9AA 87D4 84C7 FBD6 F3A9 9442 20CC 6CD2