Sean <[email protected]> napisał: >My question is whether there is a way to make a barrier between Cobbler >installation finished and the Ansible cookbook start to launch. Is >there a >notification mechanism so that I can wait all 5 machines' OS are ready?
I don't know about cobbler, but you can wait for the machines with wait_for module (http://docs.ansible.com/wait_for_module.html). Something like this at the beginning of your playbook will wait until all the hosts have port 22 open (but no longer than 900 seconds): - hosts: all gather_facts: no # makes sure Ansible won't attempt connection too soon tasks: - local_action: wait_for host={{inventory_hostname}} port=22 timeout=900 > >Thanks, >Sean -- Wysłane za pomocą K-9 Mail. -- 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/9c3288ab-4ec0-4072-81ca-ec95ba3049cb%40email.android.com. For more options, visit https://groups.google.com/d/optout.
