Add handlers test
This commit is contained in:
parent
d07032fa5a
commit
799fe2c289
4 changed files with 30 additions and 0 deletions
|
@ -29,4 +29,5 @@
|
||||||
- { role: test_facts_d, tags: test_facts_d }
|
- { role: test_facts_d, tags: test_facts_d }
|
||||||
- { role: test_conditionals, tags: test_conditionals }
|
- { role: test_conditionals, tags: test_conditionals }
|
||||||
- { role: test_async, tags: test_async }
|
- { role: test_async, tags: test_async }
|
||||||
|
- { role: test_handlers, tags: test_handlers }
|
||||||
|
|
||||||
|
|
3
test/integration/roles/test_handlers/handlers/main.yml
Normal file
3
test/integration/roles/test_handlers/handlers/main.yml
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
- name: set handler fact
|
||||||
|
set_fact:
|
||||||
|
handler_called: True
|
3
test/integration/roles/test_handlers/meta/main.yml
Normal file
3
test/integration/roles/test_handlers/meta/main.yml
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
dependencies:
|
||||||
|
- prepare_tests
|
||||||
|
|
23
test/integration/roles/test_handlers/tasks/main.yml
Normal file
23
test/integration/roles/test_handlers/tasks/main.yml
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
# test code for the async keyword
|
||||||
|
# (c) 2014, James Tanner <tanner.jc@gmail.com>
|
||||||
|
|
||||||
|
# This file is part of Ansible
|
||||||
|
#
|
||||||
|
# Ansible is free software: you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation, either version 3 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# Ansible is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
- name: notify the handler
|
||||||
|
shell: echo
|
||||||
|
notify:
|
||||||
|
- set handler fact
|
||||||
|
|
Loading…
Reference in a new issue