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 [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/a9db896c-07a3-4aac-af71-66325252570f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.