mirror of
https://gitlab.archlinux.org/archlinux/infrastructure.git
synced 2024-05-24 07:26:03 +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
|
- name: add authorized key for root
|
||||||
authorized_key: user=root key="{{ item }}" path=/mnt/root/.ssh/authorized_keys
|
authorized_key: user=root key="{{ item }}" path=/mnt/root/.ssh/authorized_keys
|
||||||
with_file:
|
with_file: "{{ root_ssh_keys }}"
|
||||||
- sven.pub
|
|
||||||
- florian.pub
|
|
||||||
|
|
||||||
- name: configure sshd
|
- name: configure sshd
|
||||||
template: src=sshd_config.j2 dest=/mnt/etc/ssh/sshd_config owner=root group=root mode=0644
|
template: src=sshd_config.j2 dest=/mnt/etc/ssh/sshd_config owner=root group=root mode=0644
|
||||||
|
|
Loading…
Reference in New Issue