mirror of https://github.com/ansible/ansible.git
tests: check that handlers are able to use 'include'
parent
2ac12432ef
commit
3edac76e1b
@ -0,0 +1,2 @@
|
||||
- name: test handler
|
||||
debug: msg="handler called"
|
||||
@ -0,0 +1 @@
|
||||
- include: handlers.yml
|
||||
@ -0,0 +1,4 @@
|
||||
- name: 'main task'
|
||||
debug: msg='main task'
|
||||
changed_when: True
|
||||
notify: test handler
|
||||
@ -0,0 +1,14 @@
|
||||
- name: verify that play can include handler
|
||||
hosts: testhost
|
||||
tasks:
|
||||
- debug: msg="main task"
|
||||
changed_when: True
|
||||
notify: test handler
|
||||
tags: ['playbook_include_handlers']
|
||||
handlers:
|
||||
- include: handlers.yml
|
||||
|
||||
- name: verify that role can include handler
|
||||
hosts: testhost
|
||||
roles:
|
||||
- { role: test_handlers_include, tags: ['role_include_handlers'] }
|
||||
Loading…
Reference in New Issue