You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I tried to use your role for rhel7.7 to 8 upgrade but I am always getting the error.
Regardless of how I define leapp_custom_repositories var the following task always fails:
TASK [mrjoshuap.leapp : Generate leapp preupgrade report] ***************************************************************************************************
fatal: [node1.example.com]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: the inline if-expression on line 1 evaluated to false and no else section was defined.\n\nThe error appears to be in '/home/automation/plays4/roles/mrjoshuap.leapp/tasks/preupgrade.yml': line 17, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Generate leapp preupgrade report\n ^ here\n"}
The text was updated successfully, but these errors were encountered:
I've done a little preliminary testing, and for leapp_custom_repositories using either the default value or a custom repository (epel), I was able to complete the preupgrade:
# Default []
leapp_custom_repositories: []
And after configuring EPEL:
# use custom repo epel:
leapp_custom_repositories:
- epel
That said, the error mentions an if statement, so I'll do some testing with some values for leapp_skip_rhsm and see if I can reproduce.
Hi, I tried to use your role for rhel7.7 to 8 upgrade but I am always getting the error.
Regardless of how I define leapp_custom_repositories var the following task always fails:
TASK [mrjoshuap.leapp : Generate leapp preupgrade report] ***************************************************************************************************
fatal: [node1.example.com]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: the inline if-expression on line 1 evaluated to false and no else section was defined.\n\nThe error appears to be in '/home/automation/plays4/roles/mrjoshuap.leapp/tasks/preupgrade.yml': line 17, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Generate leapp preupgrade report\n ^ here\n"}
The text was updated successfully, but these errors were encountered: