add Paramiko to ansible (#496)

* +ansible.com

* cleanup old urls

* add vault tests

* re-run CI

* re-run CI

* add comment

* remove unneded deps

* add paramko to ansible

fixes https://github.com/teaxyz/pantry.extra/issues/494
This commit is contained in:
David Dobrinskiy 2023-03-14 17:02:29 +05:00 committed by GitHub
parent a8f86cdbe4
commit d9732f2552
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,6 +12,7 @@ dependencies:
build:
script: |
python-venv.sh {{prefix}}/bin/ansible
# manually register all the ansible-* executables with tea
#FIXME dirty hack, replace with a proper solution
for _EXEC in {{prefix}}/venv/bin/ansible-*; do
@ -24,8 +25,12 @@ build:
$TRG_BIN_NAME
done
# install paramiko, a python ssh library sometimes used with ansible
{{prefix}}/venv/bin/pip install paramiko #FIXME should we pin a version?
rm -v {{prefix}}/bin/ansible-*.bak
test:
script: |
ansible --version
@ -47,6 +52,9 @@ test:
ansible-vault decrypt --vault-password-file vault-password.txt vault-test-file.txt
test "$(cat vault-test-file.txt)" = "$SECRET_MESSAGE" # decrypted
# ensure paramiko is installed
{{prefix}}/venv/bin/python -c "import paramiko"
env:
VAULT_PASSWORD: "123456789"
SECRET_MESSAGE: "Hello world!"