1
1
Fork 0
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:
Sven-Hendrik Haase 2016-05-27 22:46:00 +02:00
parent 67ac2d4215
commit 7a93192482
2 changed files with 6 additions and 3 deletions

5
group_vars/all/ssh.yml Normal file
View File

@ -0,0 +1,5 @@
---
root_ssh_keys:
- sven.pub
- florian.pub

View File

@ -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