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
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/cfc7f832-4235-463b-9ae5-0f68ed5d3037%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.