Hello,
I have a role which needs a dynamic handler.
I defined the handler in roles/foo/handlers/main.yml as:
- name: {{ item.name }}
shell: docker restart {{ item.name }}
listen: {{ item.name }}
with_items: “{{ config_list }}”
When the task is notifying the handler I get the error:
ERROR! The requested handler ‘name001’ was not found in either the main handlers list nor in the listening handlers list
-
Is my definition of the handler correct using with_items?
-
How can I list listening handlers to see if the handler is even defined or not
Thanks,
Komail