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.
27 lines
583 B
YAML
27 lines
583 B
YAML
11 years ago
|
---
|
||
|
- name: run handlers
|
||
|
hosts: A
|
||
|
gather_facts: False
|
||
|
connection: local
|
||
|
roles:
|
||
9 years ago
|
- { role: test_handlers_meta, tags: ['scenario1'] }
|
||
11 years ago
|
|
||
|
- name: verify final handler was run
|
||
|
hosts: A
|
||
|
gather_facts: False
|
||
|
connection: local
|
||
|
tasks:
|
||
|
- name: verify handler2 ran
|
||
|
assert:
|
||
|
that:
|
||
|
- "not hostvars[inventory_hostname]['handler1_called']"
|
||
|
- "'handler2_called' in hostvars[inventory_hostname]"
|
||
9 years ago
|
tags: ['scenario1']
|
||
11 years ago
|
|
||
11 years ago
|
- name: test handlers
|
||
|
hosts: testgroup
|
||
|
gather_facts: False
|
||
|
connection: local
|
||
|
roles:
|
||
|
- { role: test_handlers }
|