The Win_powershell output variable is a list, and in your case it contains one item: the file content.
This is very clearly stated in the module docs:
So just pick the first item:
set_fact:
uuid: "{{ file_contents.output[0] }}
The Win_powershell output variable is a list, and in your case it contains one item: the file content.
This is very clearly stated in the module docs:
So just pick the first item:
set_fact:
uuid: "{{ file_contents.output[0] }}