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

Commit

Permalink
test: use rpm-ostree rollback if bootc rollback is not available
Browse files Browse the repository at this point in the history
bootc rollback is only available on bootc-0.1.9 and above

Signed-off-by: Xiaofeng Wang <[email protected]>
  • Loading branch information
henrywang committed Apr 24, 2024
1 parent 1cfa9bd commit e31be80
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions playbooks/rollback.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@
- name: bootc rollback
command: bootc rollback
become: true
ignore_errors: true
register: result_bootc_rollback

- name: rpm-ostree rollback
command: rpm-ostree rollback
become: true
when: result_bootc_rollback is failed

# 20 minutes reboot timeout is for aws ec2 bare instance test
- name: Reboot to deploy new system
Expand Down

0 comments on commit e31be80

Please sign in to comment.