Browse Source

Merge pull request #759 from kwoodson/minventory

Fixed rename for extra_vars.
Kenny Woodson 9 years ago
parent
commit
54319616cf
1 changed files with 3 additions and 3 deletions
  1. 3 3
      roles/openshift_ansible_inventory/templates/multi_ec2.yaml.j2

+ 3 - 3
roles/openshift_ansible_inventory/templates/multi_ec2.yaml.j2

@@ -15,10 +15,10 @@ accounts:
     env_vars:
       AWS_ACCESS_KEY_ID: {{ account.env_vars.AWS_ACCESS_KEY_ID }}
       AWS_SECRET_ACCESS_KEY: {{ account.env_vars.AWS_SECRET_ACCESS_KEY }}
-{% if account.all_group is defined and account.hostvars is defined%}
+{% if account.all_group is defined and account.extra_vars is defined%}
     all_group: {{ account.all_group }}
-    hostvars:
-{%    for property, value in account.hostvars.items() %}
+    extra_vars:
+{%    for property, value in account.extra_vars.items() %}
       {{ property }}: {{ value }}
 {%    endfor %}
 {% endif %}