inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

Jenkins를 이용한 CI/CD Pipeline 구축

Ansible Playbook 사용하기

Ansible Playbook sample1.yml 실습 중 "Could not find or acces '~/sample.txt' on the Ansible Controller. .. 오류해결 방법"

1365

zizoen123
0

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"}

 

다음과 같은 오류가 발생하는 분이 계신지 모르겠지만 저는 발생하였습니다.

https://stackoverflow.com/questions/57390356/could-not-find-or-access-a-file-that-is-in-the-local-directory

 

stackoverflow의 게시글을 보고 문제를 해결하였는데요, src의 ~/sample.txt 을 sample.txt로 바꿔주시면 해결됩니당

답변 0