Wait for server to be ssh reachable before bootstrap/configuration
Change-Id: Id229a8de97f08ebca3aff04aa612cd922a73e9a6
This commit is contained in:
parent
9d1db52a91
commit
929490ff8c
1
site.yml
1
site.yml
@ -1,6 +1,7 @@
|
|||||||
---
|
---
|
||||||
# file: site.yml
|
# file: site.yml
|
||||||
- include: generate_infra_dynamic_groups.yml
|
- include: generate_infra_dynamic_groups.yml
|
||||||
|
- include: wait_for_servers.yml
|
||||||
- include: common.yml
|
- include: common.yml
|
||||||
- include: set_hostnames.yml
|
- include: set_hostnames.yml
|
||||||
- include: bootstrap_puppetmaster.yml
|
- include: bootstrap_puppetmaster.yml
|
||||||
|
10
wait_for_servers.yml
Normal file
10
wait_for_servers.yml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
---
|
||||||
|
# file: wait_for_servers.yml
|
||||||
|
- hosts: localhost
|
||||||
|
connection: local
|
||||||
|
gather_facts: no
|
||||||
|
user: ubuntu
|
||||||
|
become: true
|
||||||
|
tasks:
|
||||||
|
- wait_for: port=22 host="{{ hostvars[item]['ansible_ssh_host'] }}" search_regex=OpenSSH delay=10
|
||||||
|
with_items: "{{ groups['infra'] }}"
|
Loading…
x
Reference in New Issue
Block a user