Collection of Ansible playbooks to bring up an OpenStack Infra
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

wait_for_servers.yml 274B

12345678910
  1. ---
  2. # file: wait_for_servers.yml
  3. - hosts: localhost
  4. connection: local
  5. gather_facts: no
  6. user: ubuntu
  7. become: true
  8. tasks:
  9. - wait_for: port=22 host="{{ hostvars[item]['ansible_ssh_host'] }}" search_regex=OpenSSH delay=10
  10. with_items: "{{ groups['infra'] }}"