mirror of
https://gitlab.archlinux.org/archlinux/infrastructure.git
synced 2024-05-10 23:36:16 +02:00
Put root ssh keys into group variables
This commit is contained in:
parent
67ac2d4215
commit
7a93192482
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
|
||||
root_ssh_keys:
|
||||
- sven.pub
|
||||
- florian.pub
|
|
@ -110,9 +110,7 @@
|
|||
|
||||
- name: add authorized key for root
|
||||
authorized_key: user=root key="{{ item }}" path=/mnt/root/.ssh/authorized_keys
|
||||
with_file:
|
||||
- sven.pub
|
||||
- florian.pub
|
||||
with_file: "{{ root_ssh_keys }}"
|
||||
|
||||
- name: configure sshd
|
||||
template: src=sshd_config.j2 dest=/mnt/etc/ssh/sshd_config owner=root group=root mode=0644
|
||||
|
|
Loading…
Reference in New Issue