• 카테고리

    질문 & 답변
  • 세부 분야

    데브옵스 · 인프라

  • 해결 여부

    미해결

ping 모듈이 안됩니다...

24.03.12 15:53 작성 조회수 101

0

윈도우에서 진행이 잘 안되는 것 같아

https://www.inflearn.com/questions/686434/ssh-copy-id-%EC%97%90%EB%9F%AC-%EB%AC%B8%EC%9D%98
https://ploz.tistory.com/entry/9-windows-winrm%EC%9D%84-%EC%9D%B4%EC%9A%A9%ED%95%9C-ansible-%EC%82%AC%EC%9A%A9

2곳 다 참고해서 진행중인데 제 윈도우 사용 계정이 한글명이라 그런건지 아래 오류가 납니다. 아무리 찾아봐도 모르겠네요..

192.168.X.XX | UNREACHABLE! => {

"changed": false,

"msg": "ssl: 'latin-1' codec can't encode characters in position 0-2: ordinal not in range(256)",

"unreachable": true

}

hosts 파일

[ansible-server]

localhost

[windows]

192.168.X.XX

[windows:vars]

ansible_password='~!qoa7848'

ansible_connection=winrm

ansible_winrm_server_cert_validation=ignore

ansible_user=박OO_인터넷망

ansible_port=5986

답변 1

답변을 작성해보세요.

0

hyun님의 프로필

hyun

질문자

2024.03.13

윈도우 계정명을 영문으로 수정한 후 성공했습니다..!