From 940c4ab62ef5a64ddaaaf57a49357c3a16c92eff Mon Sep 17 00:00:00 2001 From: Dmitry Ilvokhin Date: Sat, 4 May 2024 16:46:40 +0100 Subject: Push public key from another laptop to servers --- roles/ssh/tasks/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'roles/ssh/tasks/main.yml') 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 -- cgit v1.2.3-70-g09d2