1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
- hosts: localhost gather_facts: false pre_tasks: - include_tasks: file: tasks/trigger_change.yml apply: notify: hello handlers: - name: hello set_fact: hello=world tasks: - name: ensure handler ran assert: that: - hello is defined - "hello == 'world'"