Open psss opened 3 years ago
Or shall this be covered by an sti
executor #229 instead?
I would rather see it as separate efforts.
What would be the difference between just running a shell script test?
ansible-playbook
needs to be run on the tmt runneransible-playbook path/to/the/playbook.yaml -i provision-inventory-from-guests-yaml
Would this be a safe for the test runner?
What about ansible galaxy dependencies?
What about using the multihost provision instead?
tmt
could provide an inventory file so that it’s easy to execute the ansible-playbook
Using multiple guests seems to be the best approach, we need to clarify though what the exact scope of this should be, what exact should be the responsiblity of tmt
and what should be left on the test.
It would be nice to support running an ansible playbook as a test. Here's a real-life example of a reboot test from the selinux repository. The best approach would be probably to add a new
framework
typeansible
which would allow executing the playbook and check for its exit status.Example test metadata could look like this: