From f2a4608e3e4031cf7e3b63a3c8a7d9c8ce382f94 Mon Sep 17 00:00:00 2001 From: Anamari-ctrl <61425208+Anamari-ctrl@users.noreply.github.com> Date: Mon, 27 Oct 2025 11:02:25 +0100 Subject: [PATCH] Update getting_started_inventory.rst with SSH access info Added instructions for key-based SSH access in Ansible. --- docs/docsite/rst/getting_started/get_started_inventory.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/docsite/rst/getting_started/get_started_inventory.rst b/docs/docsite/rst/getting_started/get_started_inventory.rst index 4e2f147af3b..3cadada3293 100644 --- a/docs/docsite/rst/getting_started/get_started_inventory.rst +++ b/docs/docsite/rst/getting_started/get_started_inventory.rst @@ -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).