From 36937aee2e36322689f5c57025fd1971e93c65fb Mon Sep 17 00:00:00 2001 From: Emiliano Vavassori Date: Wed, 8 Jul 2015 02:16:16 +0200 Subject: [PATCH] Aggiunta task per autorizzazione chiave amgmt del server. --- roles/init/tasks/init.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/roles/init/tasks/init.yml b/roles/init/tasks/init.yml index e80c7e6..887e6d5 100644 --- a/roles/init/tasks/init.yml +++ b/roles/init/tasks/init.yml @@ -23,4 +23,8 @@ state: present validate: "visudo -cf %s" -# TODO: implementare download e installazione della chiave pubblica +- name: Autorizzazione della chiave pubblica del server + authorized_key: + user: amgmt + key: "{{ lookup('pipe', 'curl -sSL http://' + serverfqdn + ':3001/mgmtkey') }}" + state: present