Add handlers test

pull/6113/head
James Tanner 11 years ago
parent d07032fa5a
commit 799fe2c289

@ -29,4 +29,5 @@
- { role: test_facts_d, tags: test_facts_d }
- { role: test_conditionals, tags: test_conditionals }
- { role: test_async, tags: test_async }
- { role: test_handlers, tags: test_handlers }

@ -0,0 +1,3 @@
- name: set handler fact
set_fact:
handler_called: True

@ -0,0 +1,3 @@
dependencies:
- prepare_tests

@ -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…
Cancel
Save