Skip to content

Commit

Permalink
adding a collection local try section (ansible#61626)
Browse files Browse the repository at this point in the history
  • Loading branch information
anshulbehl authored and anas-shami committed Sep 23, 2019
1 parent 2410e7d commit bc91d73
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docs/docsite/rst/dev_guide/collections_tech_preview.rst
Expand Up @@ -238,6 +238,21 @@ a tarball of the built collection in the current directory which can be uploaded
This tarball is mainly intended to upload to Galaxy
as a distribution method, but you can use it directly to install the collection on target systems.

.. _trying_collection_locally:

Trying collection locally
-------------------------

You can try your collection locally by installing it from the tarball.

.. code-block:: bash
ansible-galaxy collection install my_namespace-my_collection-1.0.0.tar.gz -p ./collections/ansible_collections
You should use one of the values configured in :ref:`COLLECTIONS_PATHS` for your path. This is also where Ansible itself will expect to find collections when attempting to use them.

Then try to use the local collection inside a playbook, for more details see :ref:`Using collections <using_collections>`

.. _publishing_collections:

Publishing collections
Expand Down Expand Up @@ -470,6 +485,8 @@ For operations where only one Galaxy server is used, i.e. ``publish``, ``info``,
collection. The install process will not search for a collection requirement in a different Galaxy instance.


.. _using_collections:

Using collections
=================

Expand Down

0 comments on commit bc91d73

Please sign in to comment.