Skip to content

Commit

Permalink
Add SUT install state condition
Browse files Browse the repository at this point in the history
  • Loading branch information
jullienl committed Nov 23, 2021
1 parent 28e2163 commit 31411fa
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions WIN_provisioning.yml
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,10 @@
name: "{{ server_hardware.name }}"
retries: 50
delay: 30
until: server_hardwares.serverSettings.firmwareAndDriversInstallState.installState == "InstalledPendingReboot"
until: >
(server_hardwares.serverSettings.firmwareAndDriversInstallState.installState == "Activated")
or
(server_hardwares.serverSettings.firmwareAndDriversInstallState.installState == "InstalledPendingReboot")
delegate_to: localhost

# Rebooting host for the HPE drivers/firmware activation
Expand All @@ -381,10 +384,10 @@
win_reboot:
msg: "Reboot initiated by Ansible"
connect_timeout: 5
reboot_timeout: 600
reboot_timeout: 1000
pre_reboot_delay: 0
post_reboot_delay: 30
test_command: whoami
when: server_hardwares.serverSettings.firmwareAndDriversInstallState.installState == "InstalledPendingReboot"

- name: Displaying install completed message
debug:
Expand Down

0 comments on commit 31411fa

Please sign in to comment.