Skip to content

Commit 639a538

Browse files
Merge pull request #644 from josecastillolema/retry2
Fix until in TASK [boot-iso : DELL - Power ON]
2 parents b11e118 + c42d04a commit 639a538

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ansible/roles/boot-iso/tasks/dell.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,10 @@
9393
- CD
9494
- DVD
9595
resource_id: iDRAC.Embedded.1
96+
register: result
97+
until: not result.failed
98+
retries: 5
99+
delay: 30
96100

97101
- name: DELL - Power ON
98102
community.general.redfish_command:
@@ -102,6 +106,6 @@
102106
username: "{{ hostvars[item]['bmc_user'] }}"
103107
password: "{{ hostvars[item]['bmc_password'] }}"
104108
register: result
105-
until: result.rc == 0
109+
until: not result.failed
106110
retries: 5
107111
delay: 30

0 commit comments

Comments
 (0)