run a playbook of automatic way

42 views
Skip to first unread message

Fabricio Cruz

unread,
Dec 22, 2015, 11:22:54 AM12/22/15
to Ansible Project
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 !

Brian Coca

unread,
Dec 22, 2015, 11:30:20 AM12/22/15
to Ansible Project
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.


--
Brian Coca

Fabricio Cruz

unread,
Dec 22, 2015, 12:17:18 PM12/22/15
to ansible...@googlegroups.com
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


--
You received this message because you are subscribed to a topic in the Google Groups "Ansible Project" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ansible-project/YwTvmeY16bA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAJ5XC8kCdcjCp2Hy9_pA0mGrY0tn2pHOg7a3amciVEBdN4aysQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Brian Coca

unread,
Dec 22, 2015, 12:54:06 PM12/22/15
to Ansible Project
Reply all
Reply to author
Forward
0 new messages