I use to be able to do things like:

included_general_task.yml
---
- name: Get list dir
  shell: ls {{ path_dir }}
  register: {{ list }}



main.yml
---
- include: "included_general_task.yml path_dir=/ list=root_list"

- include: "included_general_task.yml path_dir=/tmp list=tmp_list"




>From here on, I could access to the contents of {{ root_list }} and {{ 
tmp_list }} without problems.
It was working ok with ansible version 2.0.1.0, but with ansible version 
2.0.2.0 when I try to acces those variables I am getting:

fatal: [localhost]: FAILED! => {"failed": true, "msg": "'root_list' is 
undefined"}


Is this a bug? or it is something that is changed and will be like this 
from now on?

Thanks!

-- 
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/8f7fd30c-0b48-4a7e-9a53-b33f5ff252bc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to