Default role variables don't get displayed properly in playbook output

I have the following files:

roles/test/defaults/main.yml

Confirmed.

For me it also doesn’t work if I give the vars through the CLI with --extra-vars “test_var2 = TESTBAR”

try removing the spaces --extra-vars "test_var2=TESTBAR"