I'm not sure that what you are doing is right, no need to access
through facts, which would prevent it from templating (security
issue).
This example shows that the variable substitution DOES work, as long
as you access it directly.

vars.yml
composed_var: "{{test1}}"

play:
---
- hosts: localhost
  gather_facts: false
  vars:
    test1: [1,2,3]
  tasks:

   - include_vars: "{{item}}"
      with_items:
       - vars.yml

   - debug: var=composed_var


 output:
 _____________________
< TASK [include_vars] >
---------------------
ok: [localhost] => (item=vars.yml)
______________
< TASK [debug] >
--------------
ok: [localhost] => {
   "composed_var": [
       1,
       2,
       3
   ]
}



-- 
Brian Coca

-- 
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/CAJ5XC8m9pB59TPuV5DWDGKpM7VmkopqO%3D%2BQ0Ynt-inbSANP8Uw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to