Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions docs/docsite/rst/getting_started/get_started_inventory.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@ Continue getting started with Ansible and build an inventory as follows:

ansible myhosts -m ping -i inventory.ini

If your managed nodes are configured for key-based SSH access, run:

.. code-block:: bash

ansible myhosts -m ping -i inventory.ini -u root --key-file /path/to/private/key


.. note::
Pass the ``-u`` option with the ``ansible`` command if the username is different on the control node and the managed node(s).

Expand Down