On Thu, 27 Apr 2017 at 19:33, balubhai555 <[email protected]> wrote:

> Yes Dick, You are right.
>
> 1.) 'user' defined twice because my intention is to use the cron job for
> both users.
>

That's unlikely to work. If you actually do want that, I suggest iterating
over a list of users using 'with_items'.
(If it does work then it needs documentation.)

2.) Yes, I tried without sudo, But no effect with sudo or without sudo'ing
> in the clone.
>

Don't use it as it complicates things for no reason.

3.) Yes, you are right. I am trying to store the repository into those
> folder.
>
> Can you suggest me more changes to work with cron with git clone.
>
>>
cron schedules commands, and the ansible cron module is a convenient way to
configure it (timing, user, etc).

The problem is that your command doesn't work.
Scheduling something that doesn't work has the same result: it still
doesn't work.
So fix your command first, and once it works you can try to schedule it.

Hint: make sure you are able to clone a git repository into a specific
directory: https://git-scm.com/docs/git-clone

I'm not sure if repeatedly cloning a git repo is actually useful, so make
sure you understand what the implications are of doing that (or come up
with a different approach).

Dick




>> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/10352ed6-e70a-4574-a28c-813c2ae9811f%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/10352ed6-e70a-4574-a28c-813c2ae9811f%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
-- 
Dick Visser
Sr. System & Network Engineer
GÉANT

Want to join us? We're hiring: https://www.geant.org/jobs

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAL8fbwNt_tECBUN1546DYt6rCOx2r1Yf%2BpHKMnv5wNZ6MDYHwg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to