1--- 2- name: Verify handler can include other tasks (#47287) 3 hosts: testhost 4 tasks: 5 - name: include a task from the tasks section 6 include_tasks: handlers.yml 7 8 - name: notify a handler 9 debug: 10 msg: notifying handler 11 changed_when: yes 12 notify: include a task from the handlers section 13 14 handlers: 15 - name: include a task from the handlers section 16 include_tasks: handlers.yml 17