Skip to content

Commit

Permalink
fix(ansible): Update playbooks for correct retry condition
Browse files Browse the repository at this point in the history
Apt module result doesn't always have rc. So, check `failed` instead.
  • Loading branch information
balamurali27 committed Jan 21, 2025
1 parent 2545115 commit 40d35a1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion press/playbooks/filebeat_update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
name: filebeat
state: latest
register: result
until: result.rc == 0
until: result.failed == false
retries: 5
delay: 120

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
state:
present
register: result
until: result.rc == 0
until: result.failed == false
retries: 5
delay: 120

Expand Down
2 changes: 1 addition & 1 deletion press/playbooks/roles/mariadb_10_4_to_10_6/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
- libmariadbclient18
state: latest
register: result
until: result.rc == 0
until: result.failed == false
retries: 5
delay: 120

Expand Down

0 comments on commit 40d35a1

Please sign in to comment.