Do not allow addressing an import from handlers via notify. Fixes #48936 (#49317)

This commit is contained in:
Matt Martz
2018-11-29 13:50:07 -06:00
committed by GitHub
parent 7f04ee1eb4
commit 77befcf5d7
10 changed files with 34 additions and 1 deletions

View File

@@ -0,0 +1,11 @@
- hosts: localhost
gather_facts: false
tasks:
- import_role:
name: include_handler_test
- hosts: localhost
gather_facts: false
tasks:
- import_role:
name: import_handler_test

View File

@@ -0,0 +1,2 @@
- name: do_import
import_tasks: tasks/handlers.yml

View File

@@ -0,0 +1,2 @@
- debug:
msg: import handler task

View File

@@ -0,0 +1,3 @@
- command: "true"
notify:
- do_import

View File

@@ -0,0 +1,2 @@
- name: do_include
include_tasks: tasks/handlers.yml

View File

@@ -0,0 +1,2 @@
- debug:
msg: include handler task

View File

@@ -0,0 +1,3 @@
- command: "true"
notify:
- do_include