# passign arguments to the handler

**URL:** <https://forum.ansible.com/t/passign-arguments-to-the-handler/21248>\
**Category:** Ansible Project\
**Created:** [April 22, 2016, 9:47pm UTC](https://forum.ansible.com/t/passign-arguments-to-the-handler/21248 "2016-04-22T21:47:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pathangi\_Janardhanan](https://avatars.discourse-cdn.com/v4/letter/p/6bbea6/32.png) [@Pathangi\_Janardhanan](https://forum.ansible.com/u/Pathangi_Janardhanan)\
**Post date:** [April 22, 2016, 9:47pm UTC](https://forum.ansible.com/t/passign-arguments-to-the-handler/21248/1 "2016-04-22T21:47:15Z")

</div>

Hi,

I see many thread of discussion on this topic, but I am not able to find any resolution on this. I want to be able to pass parameters to my handler.

I am managing a set of Redis DB on a node, and if the configuration on any of them changes, I want to be able to restart that specific instance of Redis DB. In the main task I have a loop like this

- name: Setup the redis db config file for the DBs that we are slave node  
template:  
src: redis.slave.conf  
dest: “/etc/redis/redis.{{item.db\_name}}.conf”  
with\_items: “{{slave\_db}}”  
become: yes  
notify:
- restart redis\_server

The problem is even if one of the configurations have changed, or if a new DB is added, this results in restart of all the DB instances.

I would like to do something like - restart redis\_server \<db\_instance\>

is there any way to do something like that?

Thanks  
jana

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [April 23, 2016, 12:24am UTC](https://forum.ansible.com/t/passign-arguments-to-the-handler/21248/2 "2016-04-23T00:24:55Z")

</div>

no
