Skip to content

Commit

Permalink
Upgrade retries is made configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
Tharunn Golthi committed Jan 28, 2019
1 parent cba226e commit 123477b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ Role variables
| ``operation_type`` | string: cancel,install | Displays the type of image operation | dellos10 |
| ``software_image_url`` | string | Configures the URL path to the image file | dellos10 |
| ``software_version`` | string | Displays the software version of the image file | dellos10 |
| `` upgrade_retries`` | number: 50, 100 | Configure the number of image upgrade retries | dellos10 |

Connection variables
--------------------

Expand Down
2 changes: 1 addition & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
commands: "show image status"
register: result
until: result.stdout.0.find("In progress") < 1
retries: 50
retries: "{{ dellos_image_upgrade.upgrade_retries }}"
delay: 15
- name: "Wait for image {{ dellos_image_upgrade.operation_type }} operation"
dellos10_command:
Expand Down
1 change: 1 addition & 0 deletions tests/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ dellos_image_upgrade:
operation_type: install
software_image_url: tftp://10.16.148.8/PKGS_OS10-Enterprise-10.2.9999E.5790-installer-x86_64.bin
software_version: 10.2.9999E
upgrade_retries: 50

0 comments on commit 123477b

Please sign in to comment.