From d19c26514e8b443f079ae18b76644f65ff4d76c0 Mon Sep 17 00:00:00 2001 From: Emiliano Vavassori Date: Mon, 21 Sep 2015 01:32:56 +0200 Subject: [PATCH] Changing init variables to ansible_local variable. --- roles/init/tasks/init.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/init/tasks/init.yml b/roles/init/tasks/init.yml index e40c587..24b8418 100644 --- a/roles/init/tasks/init.yml +++ b/roles/init/tasks/init.yml @@ -38,5 +38,5 @@ - name: Authorizing Ansible Management User's key from server authorized_key: user: amgmt - key: "{{ lookup('pipe', 'curl -sSL http://' + serverfqdn + ':3000/mgmtkey') }}" + key: "{{ lookup('pipe', 'curl -sSL http://' + ansible_local.domain.serverfqdn + ':3000/mgmtkey') }}" state: present