Update dockerbox playbook and manage SSH keys
This commit is contained in:
parent
2af29f7b72
commit
1e81d17916
@ -18,5 +18,8 @@
|
|||||||
roles:
|
roles:
|
||||||
- base
|
- base
|
||||||
- docker
|
- docker
|
||||||
|
- traefik
|
||||||
|
- nextcloud
|
||||||
|
- gitea
|
||||||
- jenkins
|
- jenkins
|
||||||
- prometheus
|
- prometheus
|
||||||
|
@ -2,3 +2,9 @@
|
|||||||
apt:
|
apt:
|
||||||
name: ["vim", "wget"]
|
name: ["vim", "wget"]
|
||||||
state: present
|
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