인프라172 ansible "basic: the specified credentials were rejected by the server" 문제점 - ansible을 이용하여 windows서버에 명령을 수행하면 아래와 같은 에러가 발생함. x.x.x.x | UNREACHABLE! => { "changed": false, "msg": "basic: the specified credentials were rejected by the server", "unreachable": true } 해결방법 해당 윈도우 서버에 파워쉘로 아래 명령어 수행 Set-Item -Force WSMan:\localhost\Client\Allowunencrypted $True Set-Item -Force WSMan:\localhost\Service\Allowunencrypted $True Set-Item -Force WSMan:\localhost\Service\auth.. 2022. 5. 25. ansible playbook debug passwd 프린트 하기 원하는 호스트의 /etc/passwd에 있는 계정리스트를 출력하고자한다. {{ 변수명.stdout_lines }}의 stdout_lines를 쓰면 결과가 깔끔하게 출력됨 --- - name: print passwd hosts: "{{ varhost }}" tasks: - name: print passwdaa shell: cat /etc/passwd | awk -F ':' '{print $1}' register: print_result - name: debug print debug: msg: "{{ print_result.stdout_lines }}" 수행명령어 ansible-playbook printpasswd.yml -e "varhost=localhost" -k 2022. 5. 24. Using a SSH password instead of a key is not possible because Host Key checking is enabled and sshpass does not support this. Please add this host's fingerprint to your known_hosts file to manage this host. 문제점 젠킨스에서 ansible 명령어 수행시 아래와같은 에러가 발생함, console에서는 잘 수행됨 Using a SSH password instead of a key is not possible because Host Key checking is enabled and sshpass does not support this. Please add this host's fingerprint to your known_hosts file to manage this host. 해결방법 /etc/ansible/ansible.cfg 파일에 아래 내역 추가 후 다시 명령 수행 [defaults] host_key_checking = False 2022. 5. 23. centos7 svn: E205007: Could not use external editor to fetch log message; consider setting the $SVN_EDITOR environment variable or using the --message (-m) or --file (-F) options 에러내역 svn commit 수행 시도시 아래와 같은 에러 발생 # svn commit hihihseo.txt svn: E205007: Commit failed (details follow): svn: E205007: Could not use external editor to fetch log message; consider setting the $SVN_EDITOR environment variable or using the --message (-m) or --file (-F) options svn: E205007: None of the environment variables SVN_EDITOR, VISUAL or EDITOR are set, and no 'editor-cmd' run-time conf.. 2022. 5. 18. ansible "msg": "Missing sudo password" ansible 명령어 수행시 "msg": "Missing sudo password" 에러가 발생한다. PLAY [linux] ************************************************************************************************************************************************************************** TASK [Gathering Facts] **************************************************************************************************************************************.. 2022. 5. 16. 이전 1 ··· 22 23 24 25 26 27 28 ··· 35 다음 반응형