Update dockerbox playbook and manage SSH keys
This commit is contained in:
parent
2af29f7b72
commit
1e81d17916
@ -18,5 +18,8 @@
|
||||
roles:
|
||||
- base
|
||||
- docker
|
||||
- traefik
|
||||
- nextcloud
|
||||
- gitea
|
||||
- jenkins
|
||||
- prometheus
|
||||
|
@ -2,3 +2,9 @@
|
||||
apt:
|
||||
name: ["vim", "wget"]
|
||||
state: present
|
||||
|
||||
- name: Manage root authorized_keys
|
||||
template:
|
||||
src: authorized_keys.j2
|
||||
dest: /root/.ssh/authorized_keys
|
||||
when: authorized_keys is defined
|
||||
|
3
roles/base/templates/authorized_keys.j2
Normal file
3
roles/base/templates/authorized_keys.j2
Normal file
@ -0,0 +1,3 @@
|
||||
{% for key in authorized_keys %}
|
||||
{{ key.key }} {{ key.name }}
|
||||
{% endfor %}
|
Loading…
Reference in New Issue
Block a user