Update dockerbox playbook and manage SSH keys

This commit is contained in:
Kris Lamoureux 2020-07-29 01:09:46 -04:00
parent 2af29f7b72
commit 1e81d17916
Signed by: kris
GPG Key ID: 3EDA9C3441EDA925
3 changed files with 12 additions and 0 deletions

View File

@ -18,5 +18,8 @@
roles:
- base
- docker
- traefik
- nextcloud
- gitea
- jenkins
- prometheus

View File

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

View File

@ -0,0 +1,3 @@
{% for key in authorized_keys %}
{{ key.key }} {{ key.name }}
{% endfor %}