Skip to content

Commit

Permalink
Mention ansible collections installed in Testing Farm
Browse files Browse the repository at this point in the history
Let users know which collections are available on the test runner.
  • Loading branch information
psss committed Sep 9, 2024
1 parent 7b16db6 commit 5baf5dc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
12 changes: 11 additions & 1 deletion spec/plans/prepare.fmf
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ example: |
/ansible:
summary:
Apply ansible playbook to get the desired final state.
description:
description: |
One or more playbooks can be provided as a list under the
``playbook`` attribute. Each of them will be applied
using ``ansible-playbook`` in the given order. The path
Expand All @@ -75,6 +75,16 @@ example: |
Remote playbooks can be referenced as well as the local ones,
and both kinds can be used at the same time.

.. note::

When executing tests in the Testing Farm, `selected
ansible collections`__ are available on the test
runner and can be used in user playbooks.

__ https://gitlab.com/testing-farm/gluetool-modules/-/blob/main/container/requirements.yml

TODO: Point to TF docs instead when ready.

example: |
prepare:
how: ansible
Expand Down
1 change: 1 addition & 0 deletions tmt/steps/prepare/ansible.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ class PrepareAnsible(tmt.steps.prepare.PreparePlugin[PrepareAnsibleData]):
.. code-block:: shell
prepare --how ansible --playbook https://foo.bar/two.yml --playbook two.yml
"""

_data_class = PrepareAnsibleData
Expand Down

0 comments on commit 5baf5dc

Please sign in to comment.