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?