common: Include the name of the user in authorized_keys
This commit is contained in:
parent
087a8619cf
commit
a31ed367dd
2 changed files with 2 additions and 0 deletions
|
@ -2,3 +2,4 @@
|
||||||
- hosts: debian
|
- hosts: debian
|
||||||
roles:
|
roles:
|
||||||
- common
|
- common
|
||||||
|
- common-bitlair
|
||||||
|
|
|
@ -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 %}
|
||||||
|
|
Loading…
Add table
Reference in a new issue