본문 바로가기

전체 글210

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.
리눅스 linux playbook 예제 /etc/passwd 조회 후 특정 계정 출력 --- - hosts: linux tasks: - name: get value shell: cmd: cat /etc/passwd | grep magnus register: grep_output ignore_errors: yes changed_when: false - name: Print debug: msg: "{{ inventory_hostname }}: '{{ grep_output.stdout }}'" 2022. 5. 16.
ansible command "python setup.py egg_info" failed with error code 1 문제점 pip3 install pywinrm 명령어 수행시 아래와 같은 에러코드가 출력됨 command "python setup.py egg_info" failed with error code 1 해결방안 아래 명령어 수행 sudo -H pip3 install --upgrade --ignore-installed pip setuptools 2022. 5. 12.
ansible sing a SSH password instead of a key is not possible because Host Key checking is enabled and sshpass does not support this 문제점 리눅스 console에서는 정상 출력되나 jenkins를 통한 ansible 명령 수행시 아래와 같은 에러가 나온다. 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. Running as SYSTEM Building in workspace /var/lib/jenkins/workspace/linux_ping [linux_ping] $ sshpass ******** /usr/bin/an.. 2022. 5. 9.
텔레그램 봇(telelgram bot) 채팅방 만들기 텔레그램 1:1채팅용 봇 만들기 검색창에 botfather 검색후 채팅시작 > 만들 봇의 이름을 넣는다. 그런 다음 생성하려는 봇의 ID를 만든다. 생성이 되면 다음과같이 아래와 같은 형태로 API키를 할당해준다. 531234568778:AAG8KCwoYbIxBxxxxxxxxxxx6mqk 잘만들어졌는지 확인하려면 브라우저에 아래 값을 넣어보고 결과가 나오는지 확인해본다. https://api.telegram.org/bot[할당받은토큰값]//getUpdates 블라우저 url창에 아래와 같이 입력 https://api.telegram.org/bot12345867:asdfasdfeereYadsfasdfeerere/getUpdates 결과 [ok":true,"result":{}] 텔레그램 검색창에 자신이 만든.. 2022. 5. 6.
jenkins job 복사(새로운 item 복사) jenkins에서 새로운 Item을 만들때 기존에 만들어진 job 또는 템플릿이 필요하다고 느꼈다. github연동이라던지 각종 설정을 그대로 복사한 상태에서 새로만들어진 job만의 내용을 살짝 수정하길 원했는데 다행히 방법이 있었고 간단했다. job 복사하기 기존에 여러가지 job들이 있다, 새로운 Item 클릭 copy from에 기존의 job이름을 적으면 자동완성이 된다. 기재하고 생성 클릭 2022. 5. 5.
jenkins github 연동 jenkins github 연동 새로운 Item > freestyle project 클릭 GitHubproject > Project url에 자신의 github주소를 적으면 아래와같이 왼쪽 메뉴에 GitHub아이콘이 생기면서 링크가 걸린다.(이건 연동이아니라 그냥 링크 추가정도) 소스코드관리 > Git선택 > Repository URL에 git 주소 기재 Credentials에 github 로그인계정추가 Branch Specifier에 */main으로 쓴다. Branch Specifier */master로 쓸 경우 에러발생 가끔 블로그에 보면 */master가 쓰여있는데 2022년 5월 기준 */master를 기재하면 아래와같은 에러가 나온다. ERROR: Couldn't find any revision.. 2022. 5. 5.
ansible 에러 Failed to connect to the host via ssh: Permission denied 문제점 플레이북 실행시 아래와 같은 에러발생 TASK [Gathering Facts] *********************************************************************************************************************************************************************** fatal: [x.x.x.x]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).", "unreachabl.. 2022. 5. 3.
반응형