From af77b4f71ae6ba453ad096149477ec0ae699e0aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastian=20M=C3=A4user?= Date: Sun, 25 Feb 2018 23:08:31 +0100 Subject: [PATCH] Added Role to add GW Admin SSH Keys --- roles/gw-admin-ssh-keys/tasks/main.yml | 8 ++++++++ site.yml | 1 + 2 files changed, 9 insertions(+) create mode 100644 roles/gw-admin-ssh-keys/tasks/main.yml diff --git a/roles/gw-admin-ssh-keys/tasks/main.yml b/roles/gw-admin-ssh-keys/tasks/main.yml new file mode 100644 index 0000000..f816843 --- /dev/null +++ b/roles/gw-admin-ssh-keys/tasks/main.yml @@ -0,0 +1,8 @@ +--- + +- name: Deploy Admin Keys from vault_root_sshkeys + authorized_key: + user: root + state: present + key: "{{ item }}" + with_items: "{{ vault_root_sshkeys }}" diff --git a/site.yml b/site.yml index a0a908a..e54eb0d 100644 --- a/site.yml +++ b/site.yml @@ -10,6 +10,7 @@ - name: Setup gateway servers hosts: [gw11.regensburg.freifunk.net, gw21.regensburg.freifunk.net, gw31.regensburg.freifunk.net] roles: + - gw-admin-ssh-keys - batman - bird - fastd