|
|
@ -152,7 +152,7 @@ Includes are executed at run-time, so the name of the include exists during play
|
|
|
|
|
|
|
|
|
|
|
|
.. code-block:: yaml
|
|
|
|
.. code-block:: yaml
|
|
|
|
|
|
|
|
|
|
|
|
- trigger an included (dynamic) handler
|
|
|
|
- name: Trigger an included (dynamic) handler
|
|
|
|
hosts: localhost
|
|
|
|
hosts: localhost
|
|
|
|
handlers:
|
|
|
|
handlers:
|
|
|
|
- name: Restart services
|
|
|
|
- name: Restart services
|
|
|
@ -168,11 +168,11 @@ Imports are processed before the play begins, so the name of the import no longe
|
|
|
|
|
|
|
|
|
|
|
|
.. code-block:: yaml
|
|
|
|
.. code-block:: yaml
|
|
|
|
|
|
|
|
|
|
|
|
- trigger an imported (static) handler
|
|
|
|
- name: Trigger an imported (static) handler
|
|
|
|
hosts: localhost
|
|
|
|
hosts: localhost
|
|
|
|
handlers:
|
|
|
|
handlers:
|
|
|
|
- name: Restart services
|
|
|
|
- name: Restart services
|
|
|
|
import_tasks: restarts.yml
|
|
|
|
import_tasks: restarts.yml
|
|
|
|
tasks:
|
|
|
|
tasks:
|
|
|
|
- command: "true"
|
|
|
|
- command: "true"
|
|
|
|
notify: Restart apache
|
|
|
|
notify: Restart apache
|
|
|
|