no apparently I've still got this wrong
2014-06-19 18:29 GMT+02:00 Laurent PETIT <laurent.pe...@gmail.com>: > instead of using user=xxx as an argument for the ping module, I use > successfully the task remote_user attribute. > > But still, I'm unsure if the test works because I am already connected to > the host, or because ansible is using the password I provided via the -k > option > > > 2014-06-19 18:21 GMT+02:00 Laurent PETIT <laurent.pe...@gmail.com>: > > 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, >> >> -- >> Laurent Petit >> > > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAKVVxfr9keQsp7g-7yyFNZYJ1VgDfPmfjXVb4bxhnunjAujP%2BA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.