mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
333 B
YAML
19 lines
333 B
YAML
4 years ago
|
- 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'"
|