diff --git a/test/integration/non_destructive.yml b/test/integration/non_destructive.yml index 10d19a15a2..fe477e2764 100644 --- a/test/integration/non_destructive.yml +++ b/test/integration/non_destructive.yml @@ -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 } diff --git a/test/integration/roles/test_handlers/handlers/main.yml b/test/integration/roles/test_handlers/handlers/main.yml new file mode 100644 index 0000000000..117741f825 --- /dev/null +++ b/test/integration/roles/test_handlers/handlers/main.yml @@ -0,0 +1,3 @@ +- name: set handler fact + set_fact: + handler_called: True diff --git a/test/integration/roles/test_handlers/meta/main.yml b/test/integration/roles/test_handlers/meta/main.yml new file mode 100644 index 0000000000..1050c23ce3 --- /dev/null +++ b/test/integration/roles/test_handlers/meta/main.yml @@ -0,0 +1,3 @@ +dependencies: + - prepare_tests + diff --git a/test/integration/roles/test_handlers/tasks/main.yml b/test/integration/roles/test_handlers/tasks/main.yml new file mode 100644 index 0000000000..e788f51ea2 --- /dev/null +++ b/test/integration/roles/test_handlers/tasks/main.yml @@ -0,0 +1,23 @@ +# test code for the async keyword +# (c) 2014, James Tanner + +# 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 . + +- name: notify the handler + shell: echo + notify: + - set handler fact +