Hello,
I bootstrap server security from a bootstrap.yml playbook.
Before restarting the ssh service, I’d like to test that it is possible to ssh into the host via the key mechanism (I have used the authorized_keys module for this purpose).
I’m trying with the ping module as a task, but I’m not sure :
- if I can ask it to not use password authentication and force using private key authentication
- how I can force a specific user (I tried user= without success => it is using the user ‘ssh’ ?!?)
Thanks in advance for your insights,