mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 04:40:22 -07:00
This commit is contained in:
parent
7f04ee1eb4
commit
77befcf5d7
10 changed files with 34 additions and 1 deletions
|
@ -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
|
|
@ -0,0 +1,2 @@
|
|||
- name: do_import
|
||||
import_tasks: tasks/handlers.yml
|
|
@ -0,0 +1,2 @@
|
|||
- debug:
|
||||
msg: import handler task
|
|
@ -0,0 +1,3 @@
|
|||
- command: "true"
|
||||
notify:
|
||||
- do_import
|
|
@ -0,0 +1,2 @@
|
|||
- name: do_include
|
||||
include_tasks: tasks/handlers.yml
|
|
@ -0,0 +1,2 @@
|
|||
- debug:
|
||||
msg: include handler task
|
|
@ -0,0 +1,3 @@
|
|||
- command: "true"
|
||||
notify:
|
||||
- do_include
|
|
@ -86,3 +86,7 @@ ansible-playbook public_exposure/no_overwrite_roles.yml -i ../../inventory "$@"
|
|||
|
||||
# https://github.com/ansible/ansible/pull/48068
|
||||
ansible-playbook run_once/playbook.yml "$@"
|
||||
|
||||
# https://github.com/ansible/ansible/issues/48936
|
||||
ansible-playbook -v handler_addressing/playbook.yml 2>&1 | tee test_handler_addressing.out
|
||||
test "$(egrep -c 'include handler task|ERROR! The requested handler '"'"'do_import'"'"' was not found' test_handler_addressing.out)" = 2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue