CI: Test SSH password authentication without sshpass command
Ansible 12 (ansible-core 2.19) has gained support for specifying an SSH password, without requiring `sshpass`. It specifies the environment variable `SSH_ASKPASS` such that `ansible` itself is called. Mitogen is already able to support this. This change provides test coverage of the new feature by not installing `sshpass` on macOS runners. when Ansible 12 is under test. Ubuntu runners come with `sshpass` pre-installed. Required Ansible is also bumped to the latest pre-releases, for relevant fixes.pull/1289/head
parent
3cba11a126
commit
55b0ece0e7
@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -o errexit
|
||||
set -o nounset
|
||||
set -o pipefail
|
||||
|
||||
VERSION="$1"
|
||||
|
||||
curl \
|
||||
--fail \
|
||||
--location \
|
||||
--no-progress-meter \
|
||||
--remote-name \
|
||||
"https://downloads.sourceforge.net/project/sshpass/sshpass/${VERSION}/sshpass-${VERSION}.tar.gz"
|
||||
tar xvf "sshpass-${VERSION}.tar.gz"
|
||||
cd "sshpass-${VERSION}"
|
||||
./configure
|
||||
sudo make install
|
||||
Loading…
Reference in New Issue