diff --git a/tasks/upgrade/undercloud_os_upgrade.yaml b/tasks/upgrade/undercloud_os_upgrade.yaml index 30755819..e2b495c2 100644 --- a/tasks/upgrade/undercloud_os_upgrade.yaml +++ b/tasks/upgrade/undercloud_os_upgrade.yaml @@ -41,7 +41,7 @@ - name: Run leapp upgrade (download packages) shell: | set -o pipefail - {{ 'LEAPP_DEVEL_SKIP_RHSM=1 sudo -E' if leapp_unsubscribed|bool and upgrade_workarounds|bool }} leapp upgrade --debug 2>&1 | \ + {% if leapp_unsubscribed|bool and upgrade_workarounds|bool %} LEAPP_DEVEL_SKIP_RHSM=1 sudo -E {% endif %}leapp upgrade --debug 2>&1 | \ tee {{ working_dir }}/undercloud_leapp_upgrade.log - name: Reboot the undercloud