TASK [copying file with playbook] *********************************************************************************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: If you are using a module and expect the file to exist on the remote, see the remote_src option
fatal: [172.17.0.3]: FAILED! => {"changed": false, "msg": "Could not find or access '~/sample.txt' on the Ansible Controller.\nIf you are using a module and expect the file to exist on the remote, see the remote_src option"}
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: If you are using a module and expect the file to exist on the remote, see the remote_src option
fatal: [172.17.0.4]: FAILED! => {"changed": false, "msg": "Could not find or access '~/sample.txt' on the Ansible Controller.\nIf you are using a module and expect the file to exist on the remote, see the remote_src option"}
다음과 같은 오류가 발생하는 분이 계신지 모르겠지만 저는 발생하였습니다.
stackoverflow의 게시글을 보고 문제를 해결하였는데요, src의 ~/sample.txt 을 sample.txt로 바꿔주시면 해결됩니당