Are you intending "root_list" and "tmp_list" to be expanded into "{{
root_list }}" and "{{ tmp_list }}" (by nature of the substitution into
"list"?)
On Friday, April 22, 2016 at 11:14:18 AM UTC-4, Dan C wrote:
>
> 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/2827aee7-381e-4185-9258-42ef5ae1a76a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.