<p>I think you can use <code>listen</code> as explained here: <a href="https://medium.com/@george.shuklin/listen-feature-for-handlers-in-ansible-29183524c7e1" rel="nofollow noreferrer">https://medium.com/@george.shuklin/listen-feature-for-handlers-in-ansible-29183524c7e1</a></p>

CC BY-SA 4.0
2020-10-02T18:25:08.183Z
Ah!  I started ansible pre-2.2!
rrauenza
CC BY-SA 4.0
2020-10-02T06:08:38.137Z
2020-10-02T06:08:38.137Z
sgargel
<p>I would like to make an ansible role that drops some credentials into /etc for a few services that are running.  Each service is slightly different and requires different mechanisms for restarting to pick up the new credentials.</p>
<p>Is it possible to have a meta dependency somehow communicate back up to the consumer/parent to trigger a handler to restart the services that depend on the file?</p>

<ansible>
Ansible: Detecting in parent role when meta dependency role had change
rrauenza
# Ansible: Detecting in parent role when meta dependency role had change

(Asked by: username_0 on 2020-10-01)

I would like to make an ansible role that drops some credentials into /etc for a few services that are running. Each service is slightly different and requires different mechanisms for restarting to pick up the new credentials.

Is it possible to have a meta dependency somehow communicate back up to the consumer/parent to trigger a handler to restart the services that depend on the file?

**Tags:** ansible


---

## 1 answers

### Answer by username_1 on 2020-10-02. Score: 1 | Accepted answer

I think you can use `listen` as explained here: <https://medium.com/@george.shuklin/listen-feature-for-handlers-in-ansible-29183524c7e1>

> **Comments:**
> **username_0**: Ah!  I started ansible pre-2.2!  

---

