Further note for people on older releases (2 or newer I believe, < 2.4):

You can achieve the same thing as include_tasks with include and static: 
no, like so:

    - name: include for second task
      include: task.yml
      static: no
      when: inventory_hostname == 'machine-b'

Hope that helps!

On Friday, 23 March 2018 19:06:11 UTC, Alex Hunt wrote:
>
> Thank you Brian for updating the docs. That makes it much more clear.
>
> And thank you James for the workaround!!! The change to dynamic 
> include_tasks rather than the older static include statement seems to work 
> great.
>
> Note for people on older releases, you have to be running at least Ansible 
> 2.4 to have include_tasks.
>

-- 
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/5ea94eea-28ef-4956-a6c0-dcf3d198e24a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to