adds name lines to handler re-use examples (#71946)
Co-authored-by: Alicia Cozine <acozine@users.noreply.github.com>
This commit is contained in:
parent
c1005147e0
commit
eed606e0e9
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue