diff options
author | Dmitry Ilvokhin <d@ilvokhin.com> | 2024-05-04 16:46:40 +0100 |
---|---|---|
committer | Dmitry Ilvokhin <d@ilvokhin.com> | 2024-05-04 16:46:40 +0100 |
commit | 940c4ab62ef5a64ddaaaf57a49357c3a16c92eff (patch) | |
tree | 4889f26129918a3e5acbfffc71fa3345e81a74c7 | |
parent | be92c6854fcaf1f6e837a57598bb12cd9537b0a2 (diff) | |
download | infra-940c4ab62ef5a64ddaaaf57a49357c3a16c92eff.tar.gz infra-940c4ab62ef5a64ddaaaf57a49357c3a16c92eff.tar.bz2 infra-940c4ab62ef5a64ddaaaf57a49357c3a16c92eff.zip |
Push public key from another laptop to servers
-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 |