summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/handlers/52561.yml
blob: f2e2b5800230427d5bc8b7ae428ebecfb5ae1c97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
- 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'