Skip to content
Snippets Groups Projects
Verified Commit 99fb9238 authored by Maarten de Waard's avatar Maarten de Waard :angel:
Browse files

check if testinfra works if we disable host key verification in ansible.cfg

parent b2a31de5
No related branches found
No related tags found
No related merge requests found
......@@ -84,7 +84,10 @@ testinfra:
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
- cd test/
- export ANSIBLE_HOST_KEY_CHECKING=False
# it seems testinfra does not respect this environment variable, but if we
# set host_key_checking = False in the ansible.cfg it should work
# - export ANSIBLE_HOST_KEY_CHECKING=False
- echo "host_key_checking = False" >> ansible.cfg
- py.test -v -m 'testinfra' --connection=ansible --ansible-inventory=../clusters/ci-$CI_PIPELINE_ID/inventory.yml --hosts='ansible://*'
only:
changes:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment