I'd really like to do something like this:

 - name: uploading ssh keys

   action: authorized_key user={{ item.username }}

                  key="{{ lookup('file', 'keys/ssh.{{ item.username 
}}.pub') }}"

   with_items: users


but the lookup plugin does not support substitution like that (I guess). 
 Is there a simple workaround to include 

the keys from files and still use the authorized_key module?  Otherwise, 
I'm going to have to just copy them over.


J

-- 
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/2ad9adf2-0f3e-46eb-bb51-b1182116dea7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to