# how to make cron module for running ansible playbooks

**URL:** <https://forum.ansible.com/t/how-to-make-cron-module-for-running-ansible-playbooks/24361>\
**Category:** Ansible Project\
**Created:** [May 1, 2017, 10:11am UTC](https://forum.ansible.com/t/how-to-make-cron-module-for-running-ansible-playbooks/24361 "2017-05-01T10:11:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![acharya\_tejaswi\_indu](https://avatars.discourse-cdn.com/v4/letter/a/41988e/32.png) [@acharya\_tejaswi\_indu](https://forum.ansible.com/u/acharya_tejaswi_indu)\
**Post date:** [May 1, 2017, 10:11am UTC](https://forum.ansible.com/t/how-to-make-cron-module-for-running-ansible-playbooks/24361/1 "2017-05-01T10:11:25Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Dick\_Davies](https://avatars.discourse-cdn.com/v4/letter/d/b9e5f3/32.png) [@Dick\_Davies](https://forum.ansible.com/u/Dick_Davies)\
**Post date:** [May 1, 2017, 1:20pm UTC](https://forum.ansible.com/t/how-to-make-cron-module-for-running-ansible-playbooks/24361/2 "2017-05-01T13:20:29Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![acharya\_tejaswi\_indu](https://avatars.discourse-cdn.com/v4/letter/a/41988e/32.png) [@acharya\_tejaswi\_indu](https://forum.ansible.com/u/acharya_tejaswi_indu)\
**Post date:** [May 2, 2017, 7:19am UTC](https://forum.ansible.com/t/how-to-make-cron-module-for-running-ansible-playbooks/24361/3 "2017-05-02T07:19:44Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Paul\_Totterman](https://avatars.discourse-cdn.com/v4/letter/p/3ec8ea/32.png) [@Paul\_Totterman](https://forum.ansible.com/u/Paul_Totterman)\
**Post date:** [May 2, 2017, 9:30am UTC](https://forum.ansible.com/t/how-to-make-cron-module-for-running-ansible-playbooks/24361/4 "2017-05-02T09:30:53Z")

</div>

> 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

---

<div class="post-metadata">

**Author:** ![acharya\_tejaswi\_indu](https://avatars.discourse-cdn.com/v4/letter/a/41988e/32.png) [@acharya\_tejaswi\_indu](https://forum.ansible.com/u/acharya_tejaswi_indu)\
**Post date:** [May 3, 2017, 8:45am UTC](https://forum.ansible.com/t/how-to-make-cron-module-for-running-ansible-playbooks/24361/5 "2017-05-03T08:45:07Z")

</div>

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,
