Skip to content

Commit

Permalink
Add a two minute pause after provisioning ec2 instances
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
skoranda committed Mar 15, 2021
1 parent ff6c833 commit d62808b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions idp_node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions ssh_bastion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions training_nodes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d62808b

Please sign in to comment.