- 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!