-
Notifications
You must be signed in to change notification settings - Fork 23.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FR for cron module: add jobs into /etc/crontab #4881
Comments
@nextus the .d structure is something a lot of daemons have moved to or are moving to because it allows less magic manipulation of file contents. Is there a reason you can't use cron.d to handle your needs? Based on what you've described, you may have better luck using lineinfile. |
@jctanner, cron.d is not available everywhere, cron.{daily,weekly,monthly} |
We can work on this as a feature request. @nextus pull requests are welcomed. |
I'm going to classify this as a bug report so this can get some addition, I would think it would be easy to let this take a path parameter to allow this. |
It already takes a path parameter, just needed a little love to let you specify an absolute path. |
This 2013 ticket looks like it can be closed? The fix added; //AnneTheAgile |
Signed-off-by: Hector Acosta <hector.acosta@gmail.com>
Hi! Thanks very much for your interest in Ansible. It sincerely means a lot to us. On September 26, 2014, due to enormous levels of contribution to the project Ansible decided to reorganize module repos, making it easier We split modules from the main project off into two repos, http://github.com/ansible/ansible-modules-core and http://github.com/ansible/ansible-modules-extras If you would still like this ticket attended to, and believe this problem or idea is still present in the latest version of Ansible (1.7.2) or the development branch, we will need your help in having it reopened in one of the two new repos, and instructions are provided below. We apologize that we are not able to make this transition happen seamlessly, though this is a one-time change and your help is greatly appreciated -- Both sets of modules will ship with Ansible, though they'll receive slightly different ticket handling. To locate where a module lives between 'core' and 'extras'
Additionally, should you need more help with this, you can ask questions on:
Thank you very much! |
As I wrote above, I believe this ticket is ok to close. Cron is a Core module. If we wanted to continue discussion, it would go here; https://github.com/ansible/ansible-modules-core/issues?q=cron For my cross-ref, I did add a mention of it here; |
@AnneTheAgile no, actually this issue is not OK to close, because the code has not been merged into the ansible repo AFAICS. |
👍 I'm still having this problem with ansible version 1.9.2 |
Not fixed in devel branch 2.1.0, either. |
I'm using singular file for all my cron jobs for all users and this is /etc/crontab. I'm looking toward manage this tasks by ansible cron module but it's turned up I couldn't specify cron_file outside the /etc/cron.d/ and I can't write into /etc/crontab jobs for nonroot users.
The text was updated successfully, but these errors were encountered: