update example to YAML style in documentation (#45968)

The example is in a key=value format which is deprecated.

+label: docsite_pr
This commit is contained in:
Omar Osman 2018-09-21 15:42:31 +02:00 committed by Alicia Cozine
parent 216da1c475
commit 623f803e0b

View file

@ -75,7 +75,9 @@ Includes and imports can also be used in the ``handlers:`` section. For instance
# more_handlers.yml
- name: restart apache
service: name=apache state=restarted
service:
name: apache
state: restarted
And in your main playbook file::