This is what my playbook looks like:
How about using the authorized_key module
http://docs.ansible.com/authorized_key_module.html
It has an option to specify which user to add the key to.
This is what my playbook looks like:
How about using the authorized_key module
http://docs.ansible.com/authorized_key_module.html
It has an option to specify which user to add the key to.