- 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
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/1398869426-sup-8110%40al.wesleyan.edu.
--
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.
For more options, visit https://groups.google.com/d/optout.