Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow skipping of validation of previous analysis results. #162

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
minor_changes:
- Add variable check_leapp_analysis_results which if set to false (true by default) allows to not check previous leapp analysis json results for inhibitors.
...
3 changes: 2 additions & 1 deletion roles/upgrade/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ Additionally a list of any non-Red Hat RPM packages that were installed on the s
| update_grub_to_grub_2 | false | Boolean to control whether grub gets upgraded to grub 2 in post RHEL 6 to 7 upgrade. |
| os_path | $PATH | Variable used to override the default $PATH environmental variable on the target node
| async_timeout_maximum | 7200 | Variable used to set the asynchronous task timeout value (in seconds)
| async_poll_interval | 60 | Variable used to set the asynchronous task polling internal value (in seconds)|
| async_poll_interval | 60 | Variable used to set the asynchronous task polling internal value (in seconds)
| check_leapp_analysis_results| true | Allows for running remediation and going straight to upgrade without re-running analysis. |
| post_upgrade_update | true | Boolean to decide if after the upgrade is performed a dnf update will run|

## Example playbook
Expand Down
3 changes: 3 additions & 0 deletions roles/upgrade/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,7 @@ os_path: $PATH

async_timeout_maximum: 7200
async_poll_interval: 60

check_leapp_analysis_results: true

...
1 change: 1 addition & 0 deletions roles/upgrade/tasks/leapp-upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
ansible.builtin.assert:
that: not upgrade_inhibited
msg: Inhibitors found, please investigate and rerun analysis.
when: check_leapp_analysis_results

- name: leapp-upgrade | Register to leapp activation key
community.general.redhat_subscription:
Expand Down
Loading