From a31ed367dd270b04f2534856ba50da748078d2f0 Mon Sep 17 00:00:00 2001 From: polyfloyd Date: Wed, 3 Jul 2024 21:50:43 +0200 Subject: [PATCH] common: Include the name of the user in authorized_keys --- common.yaml | 1 + roles/common-bitlair/templates/authorized_keys.j2 | 1 + 2 files changed, 2 insertions(+) diff --git a/common.yaml b/common.yaml index 2f2247e..755110a 100644 --- a/common.yaml +++ b/common.yaml @@ -2,3 +2,4 @@ - hosts: debian roles: - common + - common-bitlair diff --git a/roles/common-bitlair/templates/authorized_keys.j2 b/roles/common-bitlair/templates/authorized_keys.j2 index f310024..182dc36 100644 --- a/roles/common-bitlair/templates/authorized_keys.j2 +++ b/roles/common-bitlair/templates/authorized_keys.j2 @@ -1,5 +1,6 @@ # Managed by Ansible {% for name in root_access %} +# {{ name }} {{ lookup('file', 'authorized_keys/'+name+'.keys') }} {% endfor %}