# [Best practices] Extend an occupied hook

**URL:** https://discourse.roots.io/t/best-practices-extend-an-occupied-hook/9253
**Category:** trellis
**Created:** 2017-03-30T17:47:19Z
**Posts:** 9
**Showing post:** 1 of 9

## Post 1 by @strarsis — 2017-03-30T17:47:20Z

It doesn’t seem to be possible using an ansible list for a hook file path.

I want to extend the `deploy_build_after` hook file, adding new functionality while preserving the original one (from Trellis). I want to avoid editing the file directly for better pulling+merging further Trellis updates (I use trellis as normal git repository and pull from GitHub).

---

_[View the full topic](https://discourse.roots.io/t/best-practices-extend-an-occupied-hook/9253)._
