I think quoting in the authorized_key module would be a problem in a case like:
from="192.168.0.1",no-user-rc # no-user-rc is an option from="192.168.0.1,no-user-rc" # no-user-rc is a host both are passed to the module as: from=192.168.0.1,no-user-rc (It is very unlikely to happen, but you know...) What about a specific "sshkey" lookup plugin? On Friday, May 23, 2014 2:40:38 PM UTC+2, Michael DeHaan wrote: > > I'm not sure I agree with Abhijit as it seems this could be solved by the > authorized_key module knowing when to quote and calling pipes.quote. > > > > > On Fri, May 23, 2014 at 7:51 AM, Ruggero Marchei > <[email protected]<javascript:> > > wrote: > >> Thanks ams, >> >> I've tried the workaround suggested by Michael, passing the arguments as >> hash members, and it works perfectly! >> >> >> >> On Thursday, May 22, 2014 5:42:28 PM UTC+2, ams wrote: >> >>> At 2014-05-22 05:42:37 -0700, [email protected] wrote: >>> > >>> > > authorized_key: user=root key="{{ item }}" >>> > with_file: >>> > - my_key.pub >>> > >>> > >>> > the source key file contains an entry like: >>> > from="hostname.domain,10.0.0.*" ssh-rsa AAAAB3NzaCBLAHBLAHBLAH... >>> >>> This is the same problem described here: >>> >>> https://github.com/ansible/ansible/issues/6294 >>> >>> I can confirm that the workaround mentioned on that page (of passing the >>> values as a hash instead of key=value) works for me. Unfortunately, per >>> the explanation on that page, this is not something that will be fixed. >>> >>> -- ams >>> >> -- >> 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] <javascript:>. >> To post to this group, send email to [email protected]<javascript:> >> . >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/ansible-project/b810b7ea-e534-479f-94f3-33e76d3680ed%40googlegroups.com<https://groups.google.com/d/msgid/ansible-project/b810b7ea-e534-479f-94f3-33e76d3680ed%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> >> For more options, visit https://groups.google.com/d/optout. >> > > -- 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/25cebccd-8971-44d6-bfcb-449a4c200be4%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
