Philippe Pepiot
Philippe Pepiot
Hi, I don't think it's currently possible because we have no way to set vars directly through the `host.ansible()`. However, host vars from ansible inventory or ./host_vars/ and group vars...
Hi, indeed this is problematic (also with the `:` char). I think the correct way to handle this is to url encode these characters, and properly parse "$user:$pass@host" string with...
(testinfra command is an alias to py.test) Both pytest-ansible and testinfra are pytest plugins that define the same `--ansible-inventory` option (pytest options scope is global). I'll look if there is...
As a workaround you can add `-p no:pytest-ansible` when running testinfra tests and `-p no:testinfra` when running pytest-ansible tests.
Hi, using listdir() and recursively checking all files will be very long because testinfra will have to run a remote command for each file. You should rather use a single...
Hi, indeed images located at https://hub.docker.com/r/philpep/testinfra/ doesn't contains testinfra, this was used as a cache for CI before docker drop support for remote shared build cache ;) I think we...
@amarao I added some comment on #602 , seems `ansible --list-hosts ` resolve hosts from the pattern. In any cases I think we need to implement ansible patterns. And maybe...
Hi, thanks for reporting ! What version of ansible are you using, also can you paste your inventory ? I made some changes to fix various ssh related issues with...
Hi, testinfra will match hosts and/or groups but no patterns yet. I guess this should be feasible in the future.
@ITD27M01 thanks for your inputs ! I think we must avoid to use the "API" because we do this in the past and caused us a lot of issues (tl;dr;...