mirror of https://github.com/ansible/ansible.git
Raise a proper error when include/import_role is used as a handler (#77807)
parent
f6ac2b4f93
commit
e9af6efee6
@ -0,0 +1,2 @@
|
|||||||
|
minor_changes:
|
||||||
|
- Raise a proper error when ``include_role`` or ``import_role`` is used as a handler.
|
@ -0,0 +1,11 @@
|
|||||||
|
- name: test include_role and import_role cannot be used as handlers
|
||||||
|
hosts: localhost
|
||||||
|
gather_facts: false
|
||||||
|
tasks:
|
||||||
|
- command: "echo"
|
||||||
|
notify:
|
||||||
|
- role_handler
|
||||||
|
handlers:
|
||||||
|
- name: role_handler
|
||||||
|
include_role:
|
||||||
|
name: doesnotmatter_fails_at_parse_time
|
Loading…
Reference in New Issue