Clark Boylan 1bd5fd0b75 Fix use of hostvars for writing provider file
The ansible hostvars variable is a dict of ansible host entries so we
need to first key off of the hostname when accessing nodepool info from
hostvars. Except that since we just want the current node's variables we
can access them directly without going through hostvars.

Change-Id: Ie6a25c8487d20189cb43c2d60afbdfd00cb5aafd
2017-10-01 07:36:49 -07:00
..

This playbook writes a backwards compatible /etc/nodepool/provider file for legacy jobs running on Zuul v3 which no longer provides that file.