A really awesome solution here are the provisioning callbacks in Ansible tower.
Set up a cron tab that pings tower (anacron, firstboot, whatever) and when the machine checks in, ansible jobs will make sure that system gets the latest configuration. This is better than ansible-pull because you get the centralized history, and it's way easier to set up as well. http://www.ansible.com/tower On Wed, Jun 11, 2014 at 2:24 PM, Serge van Ginderachter < [email protected]> wrote: > > On 10 June 2014 18:25, eskhool <[email protected]> wrote: > >> what is the recommendation or best practice to apply a playbook to a set >> of machines which may often not be running? >> > > Depends what behavior you want. Should it boot up if you want to run > ansible on them, or should it fail? > > >> Shouldn't there be a registry of which playbooks have been applied where? >> > > Not really. A fact cache is something in the pipeline AFAIK; would be > nice also to be able to feed facts back from specific playbook outputs too > (e.g. deployed version of things.) > > Even if playbooks are perfectly idempotent, it is highly inefficient to >> keep applying them again and again... >> > > Not sure why this is inefficient. You have lots of hosts? Also, why would > you want to play them them again and again? Did you consider using --limit > and/or --tags? > > > Serge > > -- > You received this message because you are subscribed to the Google Groups > "Ansible Project" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/CAEhzMJDuAdLiBjQ2Hc3GAGE7V7z5Juzn2b%3DqVr%3DA1XBNw%3De%2B2w%40mail.gmail.com > <https://groups.google.com/d/msgid/ansible-project/CAEhzMJDuAdLiBjQ2Hc3GAGE7V7z5Juzn2b%3DqVr%3DA1XBNw%3De%2B2w%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CA%2BnsWgy24NOnrsAkxg82EP8CXHXxjr5CLxxvdyF5vLHQ%2B5D7Kw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
