-1

I though it should be possible to run a ansible ad hoc to enable or disable a cron job. ansible shows success with "changed": true, but the cron jobs is not enabled.

I see this as a false positive as it ansible command says successful but it really wasn't.

I would like to hear some comments thank you Julian

1
  • Alright it works! took a little bit for me.... – juliand Feb 25 at 13:19
0

Important: I needed to add the user for the cron job and put -b at the end of the ad hoc command for become. I'm off to debug more :-)

1
  • This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post. - From Review – Bruce Becker Feb 28 at 6:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.