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