As mentioned above, name it:

    $sshkey_ipaddress = $::ipaddress

then we can also pass any kind of value here, not only facts.