ansible/ansible — pull request #4836 by dekked (2013-11-07 19:03:12+00:00)
Title: Bug fix: support running handlers parametrized by name

This commit https://github.com/ansible/ansible/commit/f081c68a656488e79255eb6865b930cf56c791a9 broke a functionality I was using, where I have a generic handler defined in a file and being included in several roles for different things, parametrized by some variable.

For example:

`site.yml`:

```yaml
---

- name: test
hosts: all
connection: local

tasks:

- command: /bin/true
notify:
- Handler My Name
- Handler My Name 2

handlers:

- include: param_handler.yml name="My Name"
- include: param_handler.yml name="My Name 2"
```

`param_handler.yml`:
```yaml
---

- name: "Handler {{ name }}"
debug: msg="A message"
```

Even though they are two different handlers, the commit in question made Ansible only run one of them since the variable in the name wasn't resolved.

This PR fixes it.