Update getting_started_inventory.rst with SSH access info #3187
Update getting_started_inventory.rst with SSH access info #3187Anamari-ctrl wants to merge 1 commit intoansible:develfrom
Conversation
Added instructions for key-based SSH access in Ansible.
|
Thanks for your Ansible docs contribution! We talk about Ansible documentation on Matrix at #docs:ansible.im if you ever want to join us and chat about the docs! We meet on Matrix every Tuesday. See the Ansible calendar for meeting details. We welcome additions to our weekly agenda items too. You can add the |
|
|
||
| ansible myhosts -m ping -i inventory.ini | ||
|
|
||
| If your managed nodes are configured for key-based SSH access, run: |
There was a problem hiding this comment.
@Anamari-ctrl thanks for the contribution. I'm afraid this reads somewhat off to me though.
All SSH access is key-based. That's the fundamental nature of how SSH works.
I think the --key-file option is available for non-default key locations. For example if you store your private key somewhere other than ~/.ssh you need to tell Ansible where to find it.
In this case I'm not so sure about including this in the getting started guide because it starts adding details that might get in the way. Getting started docs are meant to be light, quick to get through, and relevant for the majority of users. If we start enumerating various parameters for non-defaults and corner cases then I'd be concerned about adding bloat that defeats the purpose of getting started content.
Added instructions for key-based SSH access in Ansible.