I won't be able to use 2.5 since import_tasks with a dynamically assigned 
variable with fail.  Is there a way around this?

---
- name: Test
  hosts: localhost
  gather_facts: False
  connection: local
  tasks:
   - set_fact:
      dynamic_variable: dynamic
   - import_tasks: "{{ dynamic_variable }}.yml"


ansible-playbook playbook.yml
Vault password:
ERROR! Error when evaluating variable in include name: {{ dynamic_variable 
}}.yml.

When using static includes, ensure that any variables used in their names 
are defined in vars/vars_files
or extra-vars passed in from the command line. Static includes cannot use 
variables from inventory
sources like group or host vars.





-- 
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/4d934acc-12a9-46d1-8023-4df47d4e78bc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to