From d4405bdb61cc1cb628786c648cbf300d9b3835e3 Mon Sep 17 00:00:00 2001 From: davidl Date: Wed, 26 Jul 2023 11:08:05 +0200 Subject: [PATCH] s --- create_user_ssh/add_authorized_key.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/create_user_ssh/add_authorized_key.yml b/create_user_ssh/add_authorized_key.yml index 79a00d5..68a8390 100644 --- a/create_user_ssh/add_authorized_key.yml +++ b/create_user_ssh/add_authorized_key.yml @@ -3,8 +3,9 @@ vars: tasks: - - name: Set up multiple authorized keys - ansible.posix.authorized_key: - user: deploy + - name: SYSTEM - Set authorized key for test_user took from file + tags: system-user + authorized_key: + user: "{{ user }}" state: present - key: "{{ key }}" \ No newline at end of file + key: "{{ key }} \ No newline at end of file