From d62808b92f786918a1da0015e6e9821e4f464997 Mon Sep 17 00:00:00 2001 From: Scott Koranda Date: Mon, 15 Mar 2021 15:18:05 -0500 Subject: [PATCH] Add a two minute pause after provisioning ec2 instances Add a two minute pause after provisioning ec2 instances. This should not be necessary since the playbook already had a task to wait for SSH to become available, but for the CentOS 7.x instances that does not seem to be sufficient. Adding the additional two minute pause results in the nodes being available for provisioning. --- idp_node.yml | 4 ++++ ssh_bastion.yml | 4 ++++ training_nodes.yml | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/idp_node.yml b/idp_node.yml index cd6fb3e..4fa0509 100644 --- a/idp_node.yml +++ b/idp_node.yml @@ -77,6 +77,10 @@ timeout: 300 register: idp_node_ssh_connection + - name: Pause two minutes for IdP node to come up + ansible.builtin.pause: + minutes: 2 + - hosts: ssh_idp_node_host become: yes gather_facts: True diff --git a/ssh_bastion.yml b/ssh_bastion.yml index 272606f..3f41d2f 100644 --- a/ssh_bastion.yml +++ b/ssh_bastion.yml @@ -93,6 +93,10 @@ register: bastion_ssh_connections loop: "{{ bastion.results }}" + - name: Pause two minutes for bastion nodes to come up + ansible.builtin.pause: + minutes: 2 + # Now provision inside all of the bastion hosts - hosts: ssh_bastion_hosts become: yes diff --git a/training_nodes.yml b/training_nodes.yml index 5e2af0f..b56a7fd 100644 --- a/training_nodes.yml +++ b/training_nodes.yml @@ -239,6 +239,10 @@ - name: Refresh inventory to pick up ec2 tags meta: refresh_inventory + + - name: Pause two minutes for training node to come up + ansible.builtin.pause: + minutes: 2 - hosts: tag_role_comanage_registry become: yes