Distributed computing on two local PCs

I have my own two PCs, and I want to use them with ray for distributed tasks.

(1)I don’t know how to write the YAML file. Is there any way to simply this step?
(2) Should I copy my source code to both PCs in order to run distributed tasks?