mirror of
https://github.com/ansible/ansible.git
synced 2026-08-02 00:22:14 +02:00
Fixes #46447 Fixes #52561 Fixes #54991 Fixes #64611 Fixes #64999 Fixes #65067 Fixes #72725 Fixes #72781 Fixes #77616
21 lines
402 B
YAML
21 lines
402 B
YAML
- hosts: A,B
|
|
gather_facts: false
|
|
tasks:
|
|
- block:
|
|
- debug:
|
|
changed_when: true
|
|
notify:
|
|
- handler1
|
|
- name: EXPECTED FAILURE
|
|
fail:
|
|
when: inventory_hostname == 'B'
|
|
always:
|
|
- debug:
|
|
msg: 'always'
|
|
- debug:
|
|
msg: 'after always'
|
|
handlers:
|
|
- name: handler1
|
|
debug:
|
|
msg: 'handler1 ran'
|