Skip to content

Commit b6d0ea7

Browse files
author
markramach
committed
Removing wait in favor of sleep. Wait is a local operation. If you
localhost doesn't have access to the remote network it will just hang until timeout.
1 parent 9a7f6ae commit b6d0ea7

File tree

2 files changed

+5
-18
lines changed

2 files changed

+5
-18
lines changed

clc-kubernetes-full-plus-apps.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -73,18 +73,10 @@
7373
groups=node
7474
with_items: new_inv_node.servers
7575

76-
- name: Sleep
76+
- name: Wait for SSH services be vailable on hosts.
7777
command: sleep 30
7878

79-
# - name: Wait for SSH process.
80-
# wait_for: host={{ item.ipaddress }} port=22 delay=5 timeout=320 state=started
81-
# with_flattened: new_inv_master.servers
82-
83-
# - name: Wait for SSH process.
84-
# wait_for: host={{ item.ipaddress }} port=22 delay=5 timeout=320 state=started
85-
# with_flattened: new_inv_node.servers
86-
87-
- include: kubernetes-master.yml hosts=master
79+
- include: kubernetes-master.yml
8880
- include: kubernetes-node.yml
8981
- include: kubernetes-app-wordpress.yml
9082
- include: kubernetes-app-rocket-chat.yml

clc-kubernetes-full.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,8 @@
7373
groups=node
7474
with_items: new_inv_node.servers
7575

76-
- name: Wait for SSH process.
77-
wait_for: host={{ item.ipaddress }} port=22 delay=5 timeout=320 state=started
78-
with_flattened: new_inv_master.servers
79-
80-
- name: Wait for SSH process.
81-
wait_for: host={{ item.ipaddress }} port=22 delay=5 timeout=320 state=started
82-
with_flattened: new_inv_node.servers
76+
- name: Wait for SSH services be vailable on hosts.
77+
command: sleep 30
8378

84-
- include: kubernetes-master.yml hosts=master
79+
- include: kubernetes-master.yml
8580
- include: kubernetes-node.yml

0 commit comments

Comments
 (0)