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

'IT > LINUX' 카테고리의 다른 글

[Ansible]Control node 의 configuration  (0) 2020.06.08
[Ansible] 설치(control node)  (0) 2020.06.06
오븐스댁 환경  (0) 2019.06.04
오븐스댁 memcached,etcd 설치  (0) 2019.06.04
오븐스댁 메시지큐 MQ 설치  (0) 2019.06.04