diff options
-rw-r--r-- | misc/pubkeys/ilvokhin.pub | 1 | ||||
-rw-r--r-- | roles/ssh/tasks/main.yml | 6 |
2 files changed, 4 insertions, 3 deletions
diff --git a/misc/pubkeys/ilvokhin.pub b/misc/pubkeys/ilvokhin.pub new file mode 100644 index 0000000..589250c --- /dev/null +++ b/misc/pubkeys/ilvokhin.pub @@ -0,0 +1 @@ +ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIE3GR3k3LAQIlmrWclf8pOsS3iZlwMUXdSpBBN0C56mT ilvokhin@meta.com diff --git a/roles/ssh/tasks/main.yml b/roles/ssh/tasks/main.yml index 922832f..f86464e 100644 --- a/roles/ssh/tasks/main.yml +++ b/roles/ssh/tasks/main.yml @@ -12,9 +12,9 @@ ansible.posix.authorized_key: user: d state: present - key: '{{ item }}' - with_file: - - misc/pubkeys/d.pub + key: "{{ lookup('file', item) }}" + with_fileglob: + - misc/pubkeys/*.pub tags: - dotfiles |