ansible 설치 후 첫 실행시
penza1@DESKTOP-B9C1PCN:/etc/ansible$ sudo 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" }
아래 에러와 함께 ansible 명령 테스트가 실패 할 경우
“msg”: “to use the ‘ssh’ connection type with passwords, you must install the sshpass program”
penza1@DESKTOP-B9C1PCN:/etc/ansible$ sudo apt-get install -y sshpass Reading package lists... Done Building dependency tree Reading state information... Done The following package was automatically installed and is no longer required: pkg-config Use 'sudo apt autoremove' to remove it. The following NEW packages will be installed: sshpass 0 upgraded, 1 newly installed, 0 to remove and 11 not upgraded. Need to get 10.5 kB of archives. After this operation, 30.7 kB of additional disk space will be used. Get:1 http://archive.ubuntu.com/ubuntu focal/universe amd64 sshpass amd64 1.06-1 [10.5 kB] Fetched 10.5 kB in 0s (22.9 kB/s) Selecting previously unselected package sshpass. (Reading database ... 50821 files and directories currently installed.) Preparing to unpack .../sshpass_1.06-1_amd64.deb ... Unpacking sshpass (1.06-1) ... Setting up sshpass (1.06-1) ... Processing triggers for man-db (2.9.1-1) ...
sshpass 를 설치 해줘야 한다
댓글 남기기