# How to exclude the task from role

**URL:** <https://forum.ansible.com/t/how-to-exclude-the-task-from-role/32777>\
**Category:** Ansible Project\
**Created:** [April 24, 2020, 6:34pm UTC](https://forum.ansible.com/t/how-to-exclude-the-task-from-role/32777 "2020-04-24T18:34:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Suresh\_Karpurapu](https://avatars.discourse-cdn.com/v4/letter/s/b38774/32.png) [@Suresh\_Karpurapu](https://forum.ansible.com/u/Suresh_Karpurapu)\
**Post date:** [April 24, 2020, 6:34pm UTC](https://forum.ansible.com/t/how-to-exclude-the-task-from-role/32777/1 "2020-04-24T18:34:16Z")

</div>

Hi Team,

I have the role which has 10 tasks. I would like to exclude 1 task out of 10 as the task already executed in previous play… Is there anyway to do

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [April 24, 2020, 11:50pm UTC](https://forum.ansible.com/t/how-to-exclude-the-task-from-role/32777/2 "2020-04-24T23:50:09Z")

</div>

Use tags
