Figured this out, need to use import_tasks or tags don't work under it.  
Reading this 
documentation 
https://docs.ansible.com/ansible/2.4/playbooks_reuse.html#differences-between-static-and-dynamic
 
and not sure if its a bug or meant to be that way.

On Thursday, November 2, 2017 at 4:49:14 PM UTC-7, coo...@gmail.com wrote:
>
> In a playbook I have a file of tasks included, like so:
>
> - include_tasks: uplinks.yml
>
> And within that task file I have a task:
>
>
> - name: configure hosts
>   ios_config:
>     commands:
>       - ip host {{ item['name'] }} {{ item['port'] }} {{ 
> interfaces['mgmt']['ip'] }}
>   with_items: "{{ host_entries }}"
>   tags: update_ts_hosts
>
>
>
> If I try to run the playbook with only that tag, no tasks will run. If I 
> move the tag to the included_tasks level, then all tasks under will run. 
>
>
> ie
>
>
> - include_tasks: misc.yml
>
>   tags: update_ts_hosts
>
>
> I would like to be able to pick specific tasks out of included files, is 
> there something I am missing here?  Thanks for any info!
>
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/4e4e63a7-c4a4-42c5-896e-85cb6d97e5d8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to