I found a solution here:
https://www.dasblinkenlichten.com/ansible-roles-and-variables/
"In the role definition Variables can also be defined as part of a role.
There are two places this can be done with variables defined in either the
‘vars’ or the ‘default’ directory of the role. Much in
I have a couple of standalone playbooks which I am trying to transform to
role-based execition.
At the start I get the hostname in a user dialog https://pastebin.com/qR1zG9BR
, then go in with the first play when ther is no ssh available on target yet to
set up authorized_keys file, so I go in