--
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-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/73a350e1-eb46-4f5b-a4f6-19ed1b086821%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
So what specifically would you say your problem is?
And perhaps it might be easier to just write a for loop and use ssh-copy-id to get your key up there first?
Ansible can do it, but there a few things to consider:1. Do all hosts use the same password? If so then this is easy2. If hosts use different passwords, you could temporarily put your password on your inventory
3. What is the need for interactivity? Ansible doesn't typically do interactive remote tasks
4. Also for doing it serially you can use -f5. Do you have to add your key to the root users authorized keys? I'd recommend not doing that, and just ssh as your user and use su or sudo functionality in ansible
--
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-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/7644b3de-6be1-4415-9cc2-9588a7c53042%40googlegroups.com.