summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/include_import/test_include_loop.yml
blob: 33775d144140749118330b495f93a2fbff668656 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
- hosts: localhost
  gather_facts: false
  tasks:
    - name: skipped include undefined loop
      include_tasks: doesnt_matter.yml
      loop: '{{ lkjsdflkjsdlfkjsdlfkjsdf }}'
      when: false
      register: skipped_include

    - debug:
        var: skipped_include

    - assert:
        that:
          - skipped_include.results is undefined
          - skipped_include.skip_reason is defined
          - skipped_include is skipped