From e9cac575eba962d1acf8f8285dc3ee9c42a2bea5 Mon Sep 17 00:00:00 2001 From: Mohammed Naser Date: Wed, 28 Aug 2019 10:19:08 -0400 Subject: [PATCH] ansible: check for bootstrap early Change-Id: I45c5b6268115c6b48ea167da9ec57e36b8a6e5e7 --- kue/drivers/playbooks/site.yaml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/kue/drivers/playbooks/site.yaml b/kue/drivers/playbooks/site.yaml index 9b190ef..cbf0b28 100644 --- a/kue/drivers/playbooks/site.yaml +++ b/kue/drivers/playbooks/site.yaml @@ -13,18 +13,25 @@ # See the License for the specific language governing permissions and # limitations under the License. -- name: Bootstrap nodes +- name: Initialize nodes hosts: all strategy: free + gather_facts: false tasks: + - name: Wait for nodes to go up + wait_for_connection: + timeout: 300 - name: Disable swap become: true shell: swapoff -a - - name: Enable forwarding become: true shell: iptables -P FORWARD ACCEPT +- name: Bootstrap nodes + hosts: all + strategy: free + tasks: - name: Add repository keys become: true apt_key: @@ -73,10 +80,6 @@ hosts: masters[0] gather_facts: false tasks: - - name: Wait for bootstrap node to go up - wait_for_connection: - timeout: 300 - - name: Drop configuration file become: true template: @@ -185,7 +188,7 @@ - name: Apply manifest changed_when: false shell: | - kubectl apply -f {{ manifest_path }}/kubernetes-dashboard.yaml + kubectl apply -f {{ manifest_path }}/kubernetes-dashboard.yaml - name: Wait for all nodes to get ready shell: kubectl get nodes