I am using this method here that I created a few weeks ago and it works really well for me. Maybe it will work well for you too?
https://github.com/mrlesmithjr/ansible-manage-ssh-keys On Wednesday, October 21, 2015 at 9:06:45 AM UTC-4, DrDth wrote: > > Hello Ansible Community, > > I'm working on a possebility to manage different ssh public keys to > different servers. I try to accomplish that with the most efficient and > automated solution. My problem is that i want to lookup the files directly > with a loop variable. Therefore I use the lookup plugin logically. But I > want the keys I choose to be the only ones in the authorized_keys file on > the remote machine. So is there a chance to use the exclusive parameter of > the authorized keys module with a loop variable which uses the lookup > module? > > Thank you for your time! > -- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/0ab2a348-5ad5-4cdb-bf0b-551611a4c686%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
