I found a reasonable alternative... I have a lineinfile task before the
cron task to add the "#Ansible: name" before the pre-existing line that I
want to manage through Ansible.
That works for me... I did some testing on a few scenarios and it seems to
resolve my issues.
Adam
On Thursday, Ja
Hi
AFAIK Cron module checks only those crons which starts with #Ansible. From
docs:
- 'The module includes one line with the description of the crontab entry
C("#Ansible: ")
corresponding to the "name" passed to the module, which is used by future
ansible/module calls
to find/check the
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 linu