Quick question : Is there any oneline ad-hoc ansible for copy the file.txt from host1 (src) to host2 (dest) ?

Quick question : Is there any oneline ad-hoc ansible for copy the file.txt from host1 (src) to host2 (dest) ?

If host1 is your Ansible contoller you can use copy if not you have synchronize or command module with scp.