Ansible synchronize python 3 issue

Ansible synchronize python 3 issue

Creator
Creator
Seonglae ChoSeonglae Cho
Created
Created
2019 Dec 23 6:36
Editor
Edited
Edited
2023 Oct 15 3:36
Refs
Refs
synchronize with password authentication does not work with python 2 · Issue #56629 · ansible/ansible
SUMMARY In Ansible 2.8 (in 1403744), synchronize module wraps rsync command in sshpass automatically if password authentication is enabled. It is a great improvement, however, the way it was implemented works only with Python 3 (due to u...
synchronize with password authentication does not work with python 2 · Issue #56629 · ansible/ansible
 
 
 
이거를 /usr/lib/python2.7/site-packages/ansible/modules/files/synchronize.py 에서 수정해주고
 
python 3 를 설치해줘야함
 
 
아니근데 localhost 는 되는데 remote node들이 안되네 헝
 
 
synchronize module fails with rsync · Issue #25072 · ansible/ansible
ISSUE TYPE Bug Report COMPONENT NAME synchronize module ANSIBLE VERSION ansible 2.0.2.0 When using the synchronize module, I get several error messages regardless of how it Tery to accomplish it. Error messages are as follow: fatal: [hos...
synchronize module fails with rsync · Issue #25072 · ansible/ansible
이대로 해서
notion image
로 하니까 이런 애러뜸
 
ansible error: Failed to find required executable rsync in paths: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/sbin"}
Thanks for contributing an answer to Server Fault! Please be sure to answer the question. Provide details and share your research! Asking for help, clarification, or responding to other answers. Making statements based on opinion; back them up with references or personal experience. To learn more, see our tips on writing great answers.
ansible error: Failed to find required executable rsync in paths: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/sbin"}
이거하고 나니까
 
 
notion image
뭘.가 없다는 거지?
 
흠 src가 remote에서 가져와야하는데 그게 문제였다 git으로 할가?
rsync 가 맞긴 한데.. command 로 해야하나
15.04: rsync connection refused
I upgraded to Ubuntu 15.04 this weekend.
15.04: rsync connection refused
 
notion image
위에가 service 안한코드 아래가 한코드인데 별반 비슷하다
그냥 shell로 하기롤..
 
 
 
 
이렇게 마무으리
 

Recommendations