I don't see why you think it would be looking in /usr/local/bin as you have hard coded the path above.
On Tue, Jun 24, 2014 at 5:40 PM, Christine Spang <[email protected]> wrote: > I'm using Ansible 1.6.3 to manage a user-specific crontab. This job runs a > command which, as a part of the script, calls another script located in > /usr/local/bin, which is not in cron's default PATH on Debian systems. > > #Ansible: do something > 0 9 * * * /home/admin/bin/do-something >~/logs/do-something.log 2>&1 > > The script fails because it can't find the command called within > `do-something` in /usr/local/bin. The right way to fix this is to set PATH > in the crontab, but I can't see a way to do that with ansible's cron module. > > What's the right way to solve this with Ansible? > > -- > 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/d7c433e5-c563-48bc-be6f-b5fb89821b99%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/d7c433e5-c563-48bc-be6f-b5fb89821b99%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CA%2BnsWgy%2BCQ-A%3DKbUJg0ecjNQQowskxofOFb4WaCbkLo1BZ6A4w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
