# run a playbook of automatic way

**URL:** <https://forum.ansible.com/t/run-a-playbook-of-automatic-way/20063>\
**Category:** Ansible Project\
**Created:** [December 22, 2015, 4:22pm UTC](https://forum.ansible.com/t/run-a-playbook-of-automatic-way/20063 "2015-12-22T16:22:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fabgcruz](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/fabgcruz/32/11002_2.png) [@fabgcruz](https://forum.ansible.com/u/fabgcruz)\
**Post date:** [December 22, 2015, 4:22pm UTC](https://forum.ansible.com/t/run-a-playbook-of-automatic-way/20063/1 "2015-12-22T16:22:54Z")

</div>

Hi,  
I need help to know what is the best way to run a playbook of automatic way, without needing to type command. I’m looking for something about cron but could not find something to solve my problem.  
I need to run periodically playbook and do not know how to do.

Thank you !

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [December 22, 2015, 4:30pm UTC](https://forum.ansible.com/t/run-a-playbook-of-automatic-way/20063/2 "2015-12-22T16:30:15Z")

</div>

you can easily run `ansible-playbook` from cron, you just have to make  
sure that your playbook, connections and privilege escalation do not  
need to prompt for info.

There is also ansible-pull that can run on the 'target' machine and  
pull its playbooks from a shared VCS repo.

---

<div class="post-metadata">

**Author:** ![fabgcruz](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/fabgcruz/32/11002_2.png) [@fabgcruz](https://forum.ansible.com/u/fabgcruz)\
**Post date:** [December 22, 2015, 5:17pm UTC](https://forum.ansible.com/t/run-a-playbook-of-automatic-way/20063/3 "2015-12-22T17:17:10Z")

</div>

Thank you for your answer.

Imagining that I have a large number of machines (200 hosts), if I want to run certain playbook should add in the cron … Ansible not have something native?

Tks,

Fabricio

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [December 22, 2015, 5:54pm UTC](https://forum.ansible.com/t/run-a-playbook-of-automatic-way/20063/4 "2015-12-22T17:54:01Z")

</div>

[http://ansible.com/tower](http://ansible.com/tower)
