-
Notifications
You must be signed in to change notification settings - Fork 87
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
Playbook fixes #534
Playbook fixes #534
Conversation
As reported in oamg#532, the logic in the ansible playbook was to fail when either the version check showed an unhandled version OR the skip_os_version_check was set to true. This meant that the toggle would either check the version or the playbook will fail. By using AND in that logic, we get the behaviour we want. Either the toggle will check the version or the playbook's check will succeed It is confusing because it is a `fail:` task. So a true value in the conditional WILL fail the playbook while a false value in the conditional means that the playbook WILL NOT fail here. Fixes oamg#532
Codecov Report
@@ Coverage Diff @@
## main #534 +/- ##
=======================================
Coverage 87.45% 87.45%
=======================================
Files 17 17
Lines 2392 2392
Branches 414 414
=======================================
Hits 2092 2092
Misses 239 239
Partials 61 61 Continue to review full report at Codecov.
|
note: The ansible playbooks are not shipped in the rpms to customers so this change does not need an integration test and does not appear in the release notes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
Clean and clear changes.
Thanks, @abadger, for the quick fix on this. |
* Fix setup playbook feature allowing user to skip os version check. As reported in oamg#532, the logic in the ansible playbook was to fail when either the version check showed an unhandled version OR the skip_os_version_check was set to true. This meant that the toggle would either check the version or the playbook will fail. By using AND in that logic, we get the behaviour we want. Either the toggle will check the version or the playbook's check will succeed It is confusing because it is a `fail:` task. So a true value in the conditional WILL fail the playbook while a false value in the conditional means that the playbook WILL NOT fail here. Fixes oamg#532 * Fix syntax of looping over centos8_repos. As reported in oamg#533, the loop syntax we have in the ansible playbook is not quite right. Instead of simply writing the variable name as we have it now, we are responsible for asking for it to be expanded in the loop construct (using "{{ }}"). Fixes oamg#533
Fixes two playbook issues. These issues prevented the ansible playbook from converting centos machines. People could still run convert2rhel from the command line.
Fix syntax of looping over centos8_repos. As reported in Invalid data passed to loop in setup-convert2rhel #533, the loop syntax we have in the ansible playbook is
not quite right. Instead of simply writing the variable name as we have it now, we are responsible for asking for it to be expanded in the loop construct (using "{{ }}").
Fixes Invalid data passed to loop in setup-convert2rhel #533
Fix setup playbook feature allowing user to skip os version check. As reported in Incorrect logic in setup-convert2rhel.yml when skip_os_version_check is true #532, the logic in the ansible playbook was to fail when either the version check showed an unhandled version OR the skip_os_version_check was set to true. This meant that the toggle would either check the version or the playbook will fail.
By using AND in that logic, we get the behaviour we want. Either the toggle will check the version or the playbook's check will succeed
It is confusing because it is a
fail:
task. So a true value in the conditional WILL fail the playbook while a false value in the conditional means that the playbook WILL NOT fail here.Fixes Incorrect logic in setup-convert2rhel.yml when skip_os_version_check is true #532
https://issues.redhat.com/browse/RHELC-650