authorized_key and multiple url as key source

21 views
Skip to first unread message

Andrey Fesenko

unread,
Sep 30, 2015, 12:34:51 PM9/30/15
to Ansible Project
Hello,
Can I possible to use authorized_key thith multiple url as key source?
If
exclusive=yes I need to transfer all key a single batch as mentioned above.

My key store, has the following structure

 - store
 -- group1
 --- user1
 ---- key1.pub
 --- user2
 ---- key2.pub
...
 -- group2
 --- user1
 ---- key1.pub
 --- user3
 ---- key3.pub


simple task
authorized_key: user='{{ item.name }}' key='{{ keys_repo }}'/raw/'{{ item.commit }}'/'{{ item.key }}'.pub
with_items: ssh_users

work fine, but it can not be replaced in a single operation all keys, it is necessary to first make one exclusive key, and then adding other.
Reply all
Reply to author
Forward
0 new messages