Having played with this a little more I am having concerns about how the cron module works when a similar line already exists.
For example, if I want to change an existing line in a crontab to modify the parameters to the command what is the best way to do that? The most effective way on linux seems to be to use lineinfile to modify the file directly. This works because cron actually looks for changed files on Linux. This doesn't work on AIX though and while modifiying the cron module to work for AIX is trivial this does not provide the functionality that I would like. Does anyone have any suggestions or do I need to rewrite the cron module completely? Adam On Monday, January 6, 2014 1:58:17 PM UTC-8, Adam Morris wrote: > > Greetings, > > I have used the cron module in one of my playbooks and it worked > perfectly. However when I came to test on a second server it added a > second cron job identical to a previous one. The previous one was not > added by Ansible. > > Would it make sense to add a check to see if Ansible is planning on adding > an identical line to one that already exists? Does anyone else feel that > this might be useful or is it just me? > > Adam > -- 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 ansible-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.