Skip to content
This repository has been archived by the owner on Feb 2, 2024. It is now read-only.

Commit

Permalink
Remove race condition on ssh startup with retries (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
mstinsky authored Nov 17, 2023
1 parent 22551ec commit 90896e1
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions tasks/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,13 +140,11 @@
block:
- name: Test Echo on New Server
ansible.builtin.command: "date"
retries: 10
delay: 3
register: result
until: result.rc == 0
changed_when: false
register: echo_output

# Print the echo to command line
- name: Print Echo
ansible.builtin.debug:
var: echo_output

###################################################################################
### Once tested, the instance and associated resources should then be removed ###
Expand Down

0 comments on commit 90896e1

Please sign in to comment.