how to make cron module for running ansible playbooks

Hi,

I am trying to run cron module for running ansible playbook for every one minute.But it is not working.I can see the job but the job is not running.The playbook is wrote is

If you can see the job, then Ansible has done its bit. You need to look
at the job itself now.

I was able to see the job by typing “crontab -e”.But it is not working.Is the job which i gave there is in the right way.

I was able to see the job by typing “crontab -e”.But it is not working.Is the job which i gave there is in the right way

Have you tried:

crontab -l -u root

Try changing the user. Which remote_user are you using?

Cheers,
Paul

yes it is working when i gave the path “/usr/local/bin/ansible /etc/ansible/playbooks/own_role.yml” in cron module.There is an internal issue so it is not worked.but now it is working fine

Thanks,