IT/LINUX
[Ansible]Centos8 에서 sshpass 설치하기
송시
2020. 6. 6. 18:44
728x90
ansible 를 설치하고 ping test 를 하던 중에 sshpass 라는 명령어가 설치되어 있어야 한다는 오류를 발견하게 되었음둥
[root@control ~]# ansible all -m ping -k
SSH password:
127.0.0.1 | FAILED! => {
"msg": "to use the 'ssh' connection type with passwords, you must install the sshpass program"
}
centos8 에서는 향상된 기능..그러나 뭐가 향상된지는 아직 공부안해서 모르는 dnf 로 설치하려고 했으나, repo 가 없어서 포기함
그냥 명령어로 다운받고 설치함
wget https://cbs.centos.org/kojifiles/packages/sshpass/1.06/8.el8/x86_64/sshpass-1.06-8.el8.x86_64.rpm
dnf install -y ./sshpass-1.06-8.el8.x86_64.rpm
[root@control ~]# !ansible
ansible all -m ping -k
SSH password:
127.0.0.1 | SUCCESS => {
"ansible_facts": {
"discovered_interpreter_python": "/usr/libexec/platform-python"
},
"changed": false,
"ping": "pong"
}
728x90