I have a user that is a deploy-style user for a specific project, so I’m trying to figure out if it’s possible to use the authorized_key module to do that.
I’ve tried something like this below and I get an error attempting to run it.
tasks:
- name: Set deploy-user authorized key from github url
authorized_key:
user: deploy-user
state: present
key: - https://github.com/username1.keys
- https://github.com/username2.keys
- https://github.com/username3.keys
I’ve tried a couple of other options with no luck.
Any suggestions?
Eric Feldhusen