Merge "Fix use of hostvars for writing provider file"
This commit is contained in:
commit
f231e09d34
@ -7,13 +7,13 @@
|
||||
msg: |
|
||||
The /etc/nodepool/provider file no longer exists and is being created
|
||||
for backwards compatibility purposes. The variables provided by this
|
||||
file are now available through Ansible under hostvars['nodepool'].
|
||||
file are now available through Ansible under hostvars[$HOST]['nodepool'].
|
||||
|
||||
- name: Create /etc/nodepool/provider file
|
||||
copy:
|
||||
content: |
|
||||
NODEPOOL_PROVIDER={{ hostvars['nodepool']['provider'] }}
|
||||
NODEPOOL_CLOUD={{ hostvars['nodepool']['cloud'] }}
|
||||
NODEPOOL_REGION={{ hostvars['nodepool']['region'] }}
|
||||
NODEPOOL_AZ={{ hostvars['nodepool']['az'] }}
|
||||
NODEPOOL_PROVIDER={{ nodepool.provider }}
|
||||
NODEPOOL_CLOUD={{ nodepool.cloud }}
|
||||
NODEPOOL_REGION={{ nodepool.region }}
|
||||
NODEPOOL_AZ={{ nodepool.az }}
|
||||
dest: /etc/nodepool/provider
|
||||
|
Loading…
x
Reference in New Issue
Block a user