summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/meta_tasks/test_end_play_multiple_plays.yml
blob: 2cc8d1e66061855036fc4f5eeebb0b8db70c7cc4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
- name: Testing end_play with multiple plays with strategy {{ test_strategy | default('linear') }}
  hosts: testhost
  gather_facts: no
  strategy: "{{ test_strategy | default('linear') }}"
  tasks:
    - debug:
        msg: "Play 1"
    - meta: end_play
    - fail:
        msg: 'Failed to end using end_play'

- name: Testing end_play with multiple plays with strategy {{ test_strategy | default('linear') }}
  hosts: testhost
  gather_facts: no
  strategy: "{{ test_strategy | default('linear') }}"
  tasks:
    - debug:
        msg: "Play 2"