common: Include the name of the user in authorized_keys

This commit is contained in:
polyfloyd 2024-07-03 21:50:43 +02:00
parent 087a8619cf
commit a31ed367dd
2 changed files with 2 additions and 0 deletions

View file

@ -2,3 +2,4 @@
- hosts: debian - hosts: debian
roles: roles:
- common - common
- common-bitlair

View file

@ -1,5 +1,6 @@
# Managed by Ansible # Managed by Ansible
{% for name in root_access %} {% for name in root_access %}
# {{ name }}
{{ lookup('file', 'authorized_keys/'+name+'.keys') }} {{ lookup('file', 'authorized_keys/'+name+'.keys') }}
{% endfor %} {% endfor %}