본문 바로가기

앤서블7

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.
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.
ansible awx 구축(cenot7 k8s) Centos7에서 쿠버네티스를 이용하여 awx를 구축하고자 한다. 서버에 어플리케이션 설치에 있어 컨테이너 기술이 더이상 선택이 아닌 필수가 되어지는 느낌이다..어쨌든 나는 아래 내용으로 3번 구축을 해봤고 다 잘 수행되었다. yum 업데이트 yum -y update selinux 설정해제하기 centos에서 필수 설정이다. selinux를 해제한다. setenforce 0 /etc/selinux/config에 SELINUX=disabled로 변경 getenforce로 수행하여 disabled 확인 방화벽 해제하기 systemctl disable firewalld --now 쿠버네티스 설치&확인하기 #설치 curl -sfL https://get.k3s.io | sudo bash - sudo chmod 6.. 2022. 5. 2.
ansible awx windows playbook example ansible awx에서 windows 노드들에 수행할 playbook 예제 직접 테스트한 것만 올렸다. 아래 사이트를 참조하였다. https://www.devopsschool.com/tutorial/ansible/ansible-windows-playbooks.html 계정 추가 --- - name: Add a user hosts: all gather_facts: false tasks: - name: Add User win_user: name: ansible password: "Wlsldks123!" state: present hostname 변경 --- - hosts: all tasks: - name: Change the hostname to sample-hostname win_hostname: nam.. 2022. 5. 2.
반응형