Save remote property value to registered variable?

Hello -

Is there a way to save a remote property value to a registered variable?

Example: Remote server has file stuff.properties with below sample content:

var1=Hello
var2=World

Can Ansible reach out to that file, crack it open, find key “var2”, then register value “World”? I dont’ want the entire stuff.properties file, but just the value “World” from key “var2”.

In my head, I imagine there may be some way to setup a regex backrefrence to slurp out “World”. Or, perhaps first fetch, then lookup, with a fancy INI plugin logic?

Thanks