# RFC: post\_tasks in roles

**URL:** <https://forum.ansible.com/t/rfc-post-tasks-in-roles/16285>\
**Category:** Ansible Developer\
**Created:** [September 19, 2014, 12:05pm UTC](https://forum.ansible.com/t/rfc-post-tasks-in-roles/16285 "2014-09-19T12:05:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rene\_Moser](https://avatars.discourse-cdn.com/v4/letter/r/7bcc69/32.png) [@Rene\_Moser](https://forum.ansible.com/u/Rene_Moser)\
**Post date:** [September 19, 2014, 12:05pm UTC](https://forum.ansible.com/t/rfc-post-tasks-in-roles/16285/1 "2014-09-19T12:05:02Z")

</div>

Hi

I would like to open a discussion about extending the role functionality with a directory similar to /task/main.yml e.g. /post\_tasks/main.yml for post\_task execution.

I one of my roles I wanted to implement health checks and I wanted them to be to be executed after the handlers. I search for a way to include those checks to the role and didn’t find any.

Thanks for your feedback.

Regards  
René

---

<div class="post-metadata">

**Author:** ![Serge\_van\_Ginderacht](https://avatars.discourse-cdn.com/v4/letter/s/b782af/32.png) [@Serge\_van\_Ginderacht](https://forum.ansible.com/u/Serge_van_Ginderacht)\
**Post date:** [September 19, 2014, 12:22pm UTC](https://forum.ansible.com/t/rfc-post-tasks-in-roles/16285/2 "2014-09-19T12:22:59Z")

</div>

​Hi René​

---

<div class="post-metadata">

**Author:** ![Rene\_Moser](https://avatars.discourse-cdn.com/v4/letter/r/7bcc69/32.png) [@Rene\_Moser](https://forum.ansible.com/u/Rene_Moser)\
**Post date:** [September 19, 2014, 1:43pm UTC](https://forum.ansible.com/t/rfc-post-tasks-in-roles/16285/3 "2014-09-19T13:43:01Z")

</div>

> ​You can do this now, if you trigger handler execution early with the special task
> 
> ​- meta: flush\_handler

nice! thx!
