Changing init variables to ansible_local variable.

This commit is contained in:
Emiliano Vavassori 2015-09-21 01:32:56 +02:00
parent e9150df4ad
commit d19c26514e

View File

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