Skip to content
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

Closed
nextus opened this issue Nov 12, 2013 · 11 comments
Closed

FR for cron module: add jobs into /etc/crontab #4881

nextus opened this issue Nov 12, 2013 · 11 comments
Labels
bug This issue/PR relates to a bug.

Comments

@nextus
Copy link
Contributor

nextus commented Nov 12, 2013

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.

@jctanner
Copy link
Contributor

@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.

@bcoca
Copy link
Member

bcoca commented Nov 12, 2013

@jctanner, cron.d is not available everywhere, cron.{daily,weekly,monthly}
can be implemented using /etc/crontab, but cron.d needs support in the cron
executable.

@jctanner
Copy link
Contributor

We can work on this as a feature request. @nextus pull requests are welcomed.

@mpdehaan
Copy link
Contributor

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.

@mpdehaan mpdehaan added P4 and removed P3 labels Mar 23, 2014
@mpdehaan mpdehaan added P5 and removed P4 labels Apr 17, 2014
@jjshoe
Copy link
Contributor

jjshoe commented Apr 28, 2014

It already takes a path parameter, just needed a little love to let you specify an absolute path.

@AnneTheAgile
Copy link

This 2013 ticket looks like it can be closed? The fix added;
A path begining with '/' will be treated an an absolute path.

//AnneTheAgile

hacosta added a commit to hacosta/ansible that referenced this issue Jul 24, 2014
Signed-off-by: Hector Acosta <hector.acosta@gmail.com>
@mpdehaan
Copy link
Contributor

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
for developers to work on the project and for us to more easily manage new contributions and tickets.

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 --
this will greatly improve velocity going forward.

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!

@AnneTheAgile
Copy link

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;
ansible/ansible-modules-core#47

@tpo
Copy link
Contributor

tpo commented Apr 7, 2015

@AnneTheAgile no, actually this issue is not OK to close, because the code has not been merged into the ansible repo AFAICS.

@tkaymak
Copy link

tkaymak commented Sep 3, 2015

👍 I'm still having this problem with ansible version 1.9.2

@tyleha
Copy link
Contributor

tyleha commented Jan 5, 2016

Not fixed in devel branch 2.1.0, either.

@ansibot ansibot added bug This issue/PR relates to a bug. and removed bug_report labels Mar 6, 2018
@ansible ansible locked and limited conversation to collaborators Apr 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug This issue/PR relates to a bug.
Projects
None yet
Development

No branches or pull requests

10 participants