# Running tasks (from files) on their own

**URL:** <https://forum.ansible.com/t/running-tasks-from-files-on-their-own/11991>\
**Category:** Ansible Project\
**Created:** [October 17, 2012, 12:40am UTC](https://forum.ansible.com/t/running-tasks-from-files-on-their-own/11991 "2012-10-17T00:40:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mark\_Nottingham](https://avatars.discourse-cdn.com/v4/letter/m/9e8a1a/32.png) [@Mark\_Nottingham](https://forum.ansible.com/u/Mark_Nottingham)\
**Post date:** [October 17, 2012, 12:40am UTC](https://forum.ansible.com/t/running-tasks-from-files-on-their-own/11991/1 "2012-10-17T00:40:21Z")

</div>

I have a number of tasks set up in their own files (in tasks/), for use with include.

These files (naturally) don’t have any tasks: section. E.g.,

—8\<—

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Post date:** [October 17, 2012, 1:24am UTC](https://forum.ansible.com/t/running-tasks-from-files-on-their-own/11991/2 "2012-10-17T01:24:57Z")

</div>

Sure.

See the documentation regarding the "tags:" keyword, and "--tags".

There's also an example playbook in the examples/playbooks dir of the checkout.

---

<div class="post-metadata">

**Author:** ![Mark\_Nottingham](https://avatars.discourse-cdn.com/v4/letter/m/9e8a1a/32.png) [@Mark\_Nottingham](https://forum.ansible.com/u/Mark_Nottingham)\
**Post date:** [October 17, 2012, 1:39am UTC](https://forum.ansible.com/t/running-tasks-from-files-on-their-own/11991/3 "2012-10-17T01:39:40Z")

</div>

Ah, I see - thanks much.
