I have the following task file:

---
- hosts: tag_env_{{env}}
  vars_files:
    - "../vars/lookups.yml"
    - "../vars/aws-{{env}}.yml"

The {{env}} variable is defined in the lookups.yml:

---
env: "{{ lookup('env','RUNTIME_ENV') }}"

I know that it is working, since I see the following when running my 
playbook: PLAY [tag_env_development]

However, the variables defined in aws-{{env}}.yml are *not* being loaded 
[1].  Is there some limitation that I'm missing, or other problem with how 
I'm attempting to load the files?

1 - My check:
    - fail: msg="Bailing out. this play requires 's3_access_key'"
      when: s3_access_key is not defined


Michael

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/f1ea8153-a8ac-404c-925f-f69fbda52434%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to